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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user