X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Ftest%2Ftest-unit-file.c;h=bca8a69b7867d3575a84b088dcf13f10bdf5af29;hp=bb5cbdf9d7212852e7b129aebdeaf2e5733cd381;hb=7e1a84f55244ca78093b1dabc58683bc0e7f4304;hpb=2c5417ade0d137f811e4fcc1b099f963e6d5a820 diff --git a/src/test/test-unit-file.c b/src/test/test-unit-file.c index bb5cbdf9d..bca8a69b7 100644 --- a/src/test/test-unit-file.c +++ b/src/test/test-unit-file.c @@ -138,6 +138,16 @@ static void test_config_parse_exec(void) { assert_se(c1->command_next == NULL); + /* escaped semicolon */ + r = config_parse_exec("fake", 5, "section", + "LValue", 0, + "/usr/bin/find \\;", + &c, NULL); + assert_se(r >= 0); + c1 = c1->command_next; + check_execcommand(c1, + "/usr/bin/find", "/usr/bin/find", ";", false); + exec_command_free_list(c); }