diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-10-07 15:54:04 +0300 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-10-07 15:54:04 +0300 |
commit | 5530caa20b9688bad0bceedb4d9df5df8ad96299 (patch) | |
tree | eb2c38ca6d95ba1c0e87d2f6088c8c737b42c796 /src/test | |
parent | 7c85ab42dda080cfed2386880b9c07ac03fa9d56 (diff) | |
parent | 3faf145d32549735c6090a6a39e3a80e68e35c5d (diff) |
Merge pull request #1487 from michich/fix-env-expansion
Fix env expansion
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-env-replace.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/test-env-replace.c b/src/test/test-env-replace.c index 2e28c0c49b..110223f3b8 100644 --- a/src/test/test-env-replace.c +++ b/src/test/test-env-replace.c @@ -118,6 +118,8 @@ static void test_replace_env_arg(void) { "$FOO$FOO", "${FOO}${BAR}", "${FOO", + "FOO$$${FOO}", + "$$FOO${FOO}", NULL }; _cleanup_strv_free_ char **r = NULL; @@ -133,7 +135,9 @@ static void test_replace_env_arg(void) { assert_se(streq(r[6], "BAR")); assert_se(streq(r[7], "BAR BARwaldo")); assert_se(streq(r[8], "${FOO")); - assert_se(strv_length(r) == 9); + assert_se(streq(r[9], "FOO$BAR BAR")); + assert_se(streq(r[10], "$FOOBAR BAR")); + assert_se(strv_length(r) == 11); } static void test_env_clean(void) { |