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 <[email protected]>

Acked-by: Seth Arnold <[email protected]>

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,
> +}
> +

Attachment: signature.asc
Description: Digital signature

-- 
AppArmor mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to