~apparmor-dev/apparmor/master

« back to all changes in this revision

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

  • Committer: Steve Beattie
  • Date: 2019-02-19 09:38:13 UTC
  • Revision ID: sbeattie@ubuntu.com-20190219093813-ud526ee6hwn8nljz
The AppArmor project has been converted to git and is now hosted on
gitlab.

To get the converted repository, please do
  git clone https://gitlab.com/apparmor/apparmor

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#=DESCRIPTION conditional else in invalid locations
2
 
#=EXRESULT FAIL
3
 
 
4
 
$BAR = false
5
 
$FOO=true
6
 
$FALSE = false
7
 
 
8
 
/bin/true {
9
 
    if $FOO {
10
 
      /bin/true rix,
11
 
      ^FOO {
12
 
        /bin/false rix,
13
 
      }
14
 
        else if $FALSE {
15
 
          /dev/null w,
16
 
      }
17
 
    }
18
 
}