chiark / gitweb /
tests: move strv_parse_nulstr to test-strv, and actually test it
[elogind.git] / src / test / test-env-replace.c
index ad5c9916085cf69473edd0c84f2e2eb1010d6c2a..0bd42e3298210db488db5f4c8282e1fc1377c717 100644 (file)
@@ -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);