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/take/test/run-debug.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 ccan/take/test/run-debug.c (limited to 'ccan/take/test/run-debug.c') diff --git a/ccan/take/test/run-debug.c b/ccan/take/test/run-debug.c deleted file mode 100644 index a9dda6e..0000000 --- a/ccan/take/test/run-debug.c +++ /dev/null @@ -1,34 +0,0 @@ -#include -#include - -#define CCAN_TAKE_DEBUG 1 -#include -#include -#include - -int main(void) -{ - const char *p = "hi"; - - plan_tests(14); - - /* We can take NULL. */ - ok1(take(NULL) == NULL); - ok1(is_taken(NULL)); - ok1(strstr(taken_any(), "run-debug.c:16:")); - ok1(taken(NULL)); /* Undoes take() */ - ok1(!is_taken(NULL)); - ok1(!taken(NULL)); - ok1(!taken_any()); - - /* We can take a real pointer. */ - ok1(take(p) == p); - ok1(is_taken(p)); - ok1(strends(taken_any(), "run-debug.c:25:p")); - ok1(taken(p)); /* Undoes take() */ - ok1(!is_taken(p)); - ok1(!taken(p)); - ok1(!taken_any()); - - return exit_status(); -} -- cgit v1.2.3