summaryrefslogtreecommitdiff
path: root/src/test/test-load-fragment.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-11-27 12:33:48 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-11-27 13:56:28 +0100
commitb9d9fbe4112b3a40b94842b7d6a4ca95faa3f946 (patch)
tree8d83156d778d5121ee7e08550d1e86356c0d36c8 /src/test/test-load-fragment.c
parentc57d2a76c51354619701c568becab7a5a51de166 (diff)
downloadsystemd-b9d9fbe4112b3a40b94842b7d6a4ca95faa3f946.tar.gz
shared/conf-parser: remove unnecessary whitespace skipping
The conf-parser machinery already removed whitespace before and after "=", no need to repeat this step. The test is adjusted to pass. It was testing an code path that doesn't happen normally, no point in doing that.
Diffstat (limited to 'src/test/test-load-fragment.c')
-rw-r--r--src/test/test-load-fragment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-load-fragment.c b/src/test/test-load-fragment.c
index 8d0a4ad2e2..7de286436d 100644
--- a/src/test/test-load-fragment.c
+++ b/src/test/test-load-fragment.c
@@ -146,7 +146,7 @@ static void test_config_parse_exec(void) {
log_info("/* no command, whitespace only, reset */");
r = config_parse_exec(NULL, "fake", 3, "section", 1,
- "LValue", 0, " ",
+ "LValue", 0, "",
&c, u);
assert_se(r == 0);
assert_se(c == NULL);