summaryrefslogtreecommitdiff
path: root/src/test/test-env-replace.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-02-07 00:33:58 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-02-07 00:38:16 +0100
commit10ddd913f0d13584e13b5e6bbcb381f1618c90c0 (patch)
treebd23fedb51c0067402a042c5d52a70b39cd29365 /src/test/test-env-replace.c
parent7c2d80944afb4196f2eff614e8da1450dffcbeaa (diff)
tests: move strv_parse_nulstr to test-strv, and actually test it
The test was originally added with this commit message: "ask-password: supported plymouth cached passwords"
Diffstat (limited to 'src/test/test-env-replace.c')
-rw-r--r--src/test/test-env-replace.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/test/test-env-replace.c b/src/test/test-env-replace.c
index ad5c991608..0bd42e3298 100644
--- a/src/test/test-env-replace.c
+++ b/src/test/test-env-replace.c
@@ -47,15 +47,7 @@ int main(int argc, char *argv[]) {
NULL
};
- char **i, **r, *t, **a, **b;
- const char nulstr[] = "fuck\0fuck2\0fuck3\0\0fuck5\0\0xxx";
-
- a = strv_parse_nulstr(nulstr, sizeof(nulstr)-1);
-
- STRV_FOREACH(i, a)
- printf("nulstr--%s\n", *i);
-
- strv_free(a);
+ char **r, *t, **a, **b;
r = replace_env_argv((char**) line, (char**) env);
strv_print(r);