diff --git a/utils/test/test-regex_matches.py b/utils/test/test-regex_matches.py index b0503b653..dfe25960c 100644 --- a/utils/test/test-regex_matches.py +++ b/utils/test/test-regex_matches.py @@ -594,14 +594,15 @@ class Test_re_match_include_parse_abi(AATest): def _run_test(self, params, expected): self.assertEqual(re_match_include_parse(params, 'abi'), expected) -class Test_re_match_include_parse_empty_filename(AATest): +class Test_re_match_include_parse_errors(AATest): tests = [ - (('include <>', 'include'), AppArmorException), + (('include <>', 'include'), AppArmorException), # various rules with empty filename (('include ""', 'include'), AppArmorException), (('include ', 'include'), AppArmorException), (('abi <>,', 'abi'), AppArmorException), (('abi "",', 'abi'), AppArmorException), (('abi ,', 'abi'), AppArmorException), + (('abi ,', 'invalid'), AppArmorBug), # invalid rule name ] def _run_test(self, params, expected):