test-fileio: use test strings that are actually valid in shell

This commit is contained in:
Lennart Poettering 2020-09-11 17:42:46 +02:00
parent 415f8a5bfe
commit 6fe3196350
1 changed files with 3 additions and 3 deletions

View File

@ -162,8 +162,8 @@ static void test_parse_multiline_env_file(void) {
assert_se(fmkostemp_safe(t, "w", &f) == 0);
fputs("one=BAR\\\n"
" VAR\\\n"
"\tGAR\n"
"\\ \\ \\ \\ VAR\\\n"
"\\\tGAR\n"
"#comment\n"
"two=\"bar\\\n"
" var\\\n"
@ -173,7 +173,7 @@ static void test_parse_multiline_env_file(void) {
" var \\\n"
"\tgar \"\n", f);
fflush(f);
assert_se(fflush_and_check(f) >= 0);
fclose(f);
r = load_env_file(NULL, t, &a);