From 9593fc545950782ed75f12f53238b07885559b2b Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 9 Jul 2018 22:28:25 -0700 Subject: remove ccan for now --- ccan/tal/test/run-steal.c | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 ccan/tal/test/run-steal.c (limited to 'ccan/tal/test/run-steal.c') diff --git a/ccan/tal/test/run-steal.c b/ccan/tal/test/run-steal.c deleted file mode 100644 index 36251cb..0000000 --- a/ccan/tal/test/run-steal.c +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include -#include - -int main(void) -{ - char *p[5]; - unsigned int i; - - plan_tests(9); - - p[0] = tal(NULL, char); - for (i = 1; i < 5; i++) - p[i] = tal(p[i-1], char); - - tal_check(NULL, "check"); - /* Steal node with no children. */ - ok1(tal_steal(p[0], p[4]) == p[4]); - tal_check(NULL, "check"); - /* Noop steal. */ - ok1(tal_steal(p[0], p[4]) == p[4]); - tal_check(NULL, "check"); - /* Steal with children. */ - ok1(tal_steal(p[0], p[1]) == p[1]); - tal_check(NULL, "check"); - /* Noop steal. */ - ok1(tal_steal(p[0], p[1]) == p[1]); - tal_check(NULL, "check"); - /* Steal from direct child. */ - ok1(tal_steal(p[0], p[2]) == p[2]); - tal_check(NULL, "check"); - - ok1(tal_parent(p[1]) == p[0]); - ok1(tal_parent(p[2]) == p[0]); - ok1(tal_parent(p[3]) == p[2]); - ok1(tal_parent(p[4]) == p[0]); - tal_free(p[0]); - - tal_cleanup(); - return exit_status(); -} -- cgit v1.2.3