From 10ddd913f0d13584e13b5e6bbcb381f1618c90c0 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Thu, 7 Feb 2013 00:33:58 +0100 Subject: 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" --- src/test/test-env-replace.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/test/test-env-replace.c') 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); -- cgit v1.2.3-54-g00ecf