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

parser: fix unit test for \\ quoting in r2537

The change to processing escape sequences in trunk commit r2537 requires
a corresponding change to the unit tests in parser_misc.c.

Signed-off-by: Steve Beattie <steve@nxnw.org>
Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
Steve Beattie
2014-06-19 13:50:57 -07:00
parent f3fd90ea57
commit 3bd3573dbb

View File

@@ -1352,7 +1352,7 @@ int test_processquoted(void)
free(out);
teststring = "\"a\\\\bcdefg\"";
processedstring = "a\\bcdefg";
processedstring = "a\\\\bcdefg";
out = processquoted(teststring, strlen(teststring));
MY_TEST(strcmp(processedstring, out) == 0,
"processquoted on quoted slash");