~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

Viewing changes to parser/tst/simple_tests/conditional/else_2.sd

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-04-27 10:38:07 UTC
  • mfrom: (5.1.118 natty)
  • Revision ID: james.westby@ubuntu.com-20110427103807-ym3rhwys6o84ith0
Tags: 2.6.1-2
debian/copyright: clarify for some full organization names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# taken from cond52.sd
 
2
#=DESCRIPTION hat defined in if and else clauses
 
3
#=EXRESULT PASS
 
4
 
 
5
$FOO=true
 
6
 
 
7
/bin/true {
 
8
  if $FOO {
 
9
    ^TRUE {
 
10
      /bin/true rix,
 
11
    }
 
12
  } else {
 
13
    ^TRUE {
 
14
      /bin/false rix,
 
15
    }
 
16
  }
 
17
  if not $FOO {
 
18
    ^FALSE {
 
19
      /bin/true rix,
 
20
    }
 
21
  } else {
 
22
    ^FALSE {
 
23
      /bin/false rix,
 
24
    }
 
25
  }
 
26
}