We no longer accept these, as per tal/str changes.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
{
char cwd[1024], *path, *ctx = tal_strdup(NULL, "ctx");
- plan_tests(87);
+ plan_tests(85);
if (!getcwd(cwd, sizeof(cwd)))
abort();
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();
{
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);
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);