[apparmor] [patch 08/12] parser: add test case for empty character class regex
Seth Arnold
seth.arnold at canonical.com
Tue Dec 10 06:09:52 UTC 2013
On Tue, Dec 03, 2013 at 12:12:24PM -0800, Steve Beattie wrote:
> This patch adds a test that verifies the parser considers an emty
> character class regex as a parse arror.
>
> Signed-off-by: Steve Beattie <steve at nxnw.org>
Acked-by: Seth Arnold <seth.arnold at canonical.com>
Woo moar tests! :)
> ---
> parser/tst/simple_tests/file/bad_re_brace_1.sd | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> Index: b/parser/tst/simple_tests/file/bad_re_brace_1.sd
> ===================================================================
> --- /dev/null
> +++ b/parser/tst/simple_tests/file/bad_re_brace_1.sd
> @@ -0,0 +1,8 @@
> +#
> +#=DESCRIPTION regex with empty character class (brace)
> +#=EXRESULT FAIL
> +#
> +/usr/bin/foo {
> + /alpha/[]beta rw,
> +}
> +
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20131209/4fa1e29a/attachment.pgp>
More information about the AppArmor
mailing list