2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-30 22:05:27 +00:00

Add parser tests for empty flags (which result in "syntax error")

Acked-by: Steve Beattie <steve@nxnw.org>
This commit is contained in:
Christian Boltz
2015-03-02 19:48:30 +01:00
parent c469b92afb
commit 49bc4efa1e
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#
#=DESCRIPTION Ensure empty flags fail
#=EXRESULT FAIL
# vim:syntax=apparmor
#
/does/not/exist flags=() {
/does/not/exist r,
}

View File

@@ -0,0 +1,9 @@
#
#=DESCRIPTION Ensure empty (whitespace-only) flags fail
#=EXRESULT FAIL
# vim:syntax=apparmor
#
/does/not/exist ( ) {
/does/not/exist r,
}