]> git.ozlabs.org Git - ccan/commitdiff
grab_file: move ccan/str_alloc to testdepends
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 12 Nov 2012 06:37:50 +0000 (17:07 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 12 Nov 2012 06:37:50 +0000 (17:07 +1030)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/grab_file/_info

index 5bae7a566b5c875f2707eea8dc728399acaa96fc..1f6e00d73067d7fb94fc1d0130b4ee3d67dd0499 100644 (file)
@@ -44,11 +44,14 @@ int main(int argc, char *argv[])
                return 1;
 
        if (strcmp(argv[1], "depends") == 0) {
                return 1;
 
        if (strcmp(argv[1], "depends") == 0) {
-               printf("ccan/str_talloc\n"); /* Needed for tests. */
                printf("ccan/talloc\n");
                printf("ccan/noerr\n");
                return 0;
        }
                printf("ccan/talloc\n");
                printf("ccan/noerr\n");
                return 0;
        }
+       if (strcmp(argv[1], "testdepends") == 0) {
+               printf("ccan/str_talloc\n");
+               return 0;
+       }
 
        return 1;
 }
 
        return 1;
 }