mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00

* a non-include related syntax error (errors/modefail.sd) * multiple successful includes followed by a failed include (errors/multi_include.sd) It also fixes two issues with the parser's line counting: * the count began at 0 (demonstrated by the first testcase's error being reporting on one line less than it should be), and * an extra line increment when includes were detected (demonstrated by the second testcase's error being reported at a line beyond the correct linenumber. The existing testcases did not catch these because they were all based on the first include in the file failing and so the start of the count from 0 counteracted the extra counted line.
7 lines
87 B
Text
7 lines
87 B
Text
# 1
|
|
# 2
|
|
# 3
|
|
/does/not/exist { # 4
|
|
/lib/lib*.so rm, # 5
|
|
/fail abcdefgh, # 6
|
|
} # 7
|