]> git.ozlabs.org Git - ccan/commitdiff
tal/path: fix test cases for take(NULL).
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Oct 2025 04:04:29 +0000 (14:34 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Oct 2025 04:04:29 +0000 (14:34 +1030)
We no longer accept these, as per tal/str changes.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tal/path/test/run-simplify.c
ccan/tal/path/test/run-split.c

index 3d1b3514bf587e550d6617cb293bce9fcd040031..9591132dcf812655b0faa3ca879c65ba49e28eeb 100644 (file)
@@ -6,7 +6,7 @@ int main(void)
 {
        char cwd[1024], *path, *ctx = tal_strdup(NULL, "ctx");
 
-       plan_tests(87);
+       plan_tests(85);
 
        if (!getcwd(cwd, sizeof(cwd)))
                abort();
@@ -234,10 +234,6 @@ int main(void)
        tal_free(path);
        ok1(tal_first(ctx) == NULL);
 
-       path = path_simplify(ctx, take(NULL));
-       ok1(!path);
-       ok1(tal_first(ctx) == NULL);
-
        tal_free(ctx);
 
        return exit_status();
index 1083cc88cbb488989ed1d83f0b9b05bdc7377b31..7b524cb0773627774099578175af15e70e4ed69b 100644 (file)
@@ -6,7 +6,7 @@ int main(void)
 {
        char *ctx = tal_strdup(NULL, "ctx"), **split;
 
-       plan_tests(46);
+       plan_tests(44);
 
        split = path_split(ctx, "foo" PATH_SEP_STR "bar");
        ok1(tal_parent(split) == ctx);
@@ -94,10 +94,6 @@ int main(void)
        tal_free(split);
        ok1(tal_first(ctx) == NULL);
 
-       split = path_split(ctx, take(NULL));
-       ok1(!split);
-       ok1(tal_first(ctx) == NULL);
-
        ok1(tal_first(NULL) == ctx && tal_next(ctx) == NULL && tal_first(ctx) == NULL);
        tal_free(ctx);