projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
366d38d
)
test-fileio: use test strings that are actually valid in shell
author
Lennart Poettering
<lennart@poettering.net>
Fri, 11 Sep 2020 15:42:46 +0000
(17:42 +0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sun, 20 Sep 2020 10:00:33 +0000
(12:00 +0200)
(cherry picked from commit
6fe3196350fdb8715aabd315f8252c307da6661c
)
src/test/test-fileio.c
patch
|
blob
|
history
diff --git
a/src/test/test-fileio.c
b/src/test/test-fileio.c
index 95dcd4fdb180af9ef9c397d92e0e0f1719641b57..3e6413ec47e0f9c64d5ba32718c6abd78f9cbf16 100644
(file)
--- a/
src/test/test-fileio.c
+++ b/
src/test/test-fileio.c
@@
-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);