summaryrefslogtreecommitdiff
path: root/src/test/test-env-util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-15 14:55:40 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-16 16:10:14 +0100
commit99bfce10802d10a62ede7a21f45df5122a7eca27 (patch)
tree0f308bc5fe884f5e382ebcef9ac05bc026fda45d /src/test/test-env-util.c
parentf08231fe07fe15933c3a2de399ac5deb22cf7901 (diff)
downloadsystemd-99bfce10802d10a62ede7a21f45df5122a7eca27.tar.gz
basic/env-util: drop now-unused strv_env_set()
Diffstat (limited to 'src/test/test-env-util.c')
-rw-r--r--src/test/test-env-util.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/test/test-env-util.c b/src/test/test-env-util.c
index ce215fdd36..39be9532b3 100644
--- a/src/test/test-env-util.c
+++ b/src/test/test-env-util.c
@@ -59,24 +59,6 @@ static void test_strv_env_unset(void) {
assert_se(strv_length(l) == 2);
}
-static void test_strv_env_set(void) {
- log_info("/* %s */", __func__);
-
- _cleanup_strv_free_ char **l = NULL, **r = NULL;
-
- l = strv_new("PIEP", "SCHLUMPF=SMURFF", "NANANANA=YES");
- assert_se(l);
-
- r = strv_env_set(l, "WALDO=WALDO");
- assert_se(r);
-
- assert_se(streq(r[0], "PIEP"));
- assert_se(streq(r[1], "SCHLUMPF=SMURFF"));
- assert_se(streq(r[2], "NANANANA=YES"));
- assert_se(streq(r[3], "WALDO=WALDO"));
- assert_se(strv_length(r) == 4);
-}
-
static void test_strv_env_merge(void) {
log_info("/* %s */", __func__);
@@ -378,7 +360,6 @@ int main(int argc, char *argv[]) {
test_strv_env_delete();
test_strv_env_get();
test_strv_env_unset();
- test_strv_env_set();
test_strv_env_merge();
test_env_strv_get_n();
test_replace_env(false);