2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-01 14:55:10 +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); free(out);
teststring = "\"a\\\\bcdefg\""; teststring = "\"a\\\\bcdefg\"";
processedstring = "a\\bcdefg"; processedstring = "a\\\\bcdefg";
out = processquoted(teststring, strlen(teststring)); out = processquoted(teststring, strlen(teststring));
MY_TEST(strcmp(processedstring, out) == 0, MY_TEST(strcmp(processedstring, out) == 0,
"processquoted on quoted slash"); "processquoted on quoted slash");