diff options
| author | William Casarin <jb55@jb55.com> | 2018-07-09 22:28:25 -0700 |
|---|---|---|
| committer | William Casarin <jb55@jb55.com> | 2018-07-09 22:31:48 -0700 |
| commit | 9593fc545950782ed75f12f53238b07885559b2b (patch) | |
| tree | 9c7c2f7cbb427c54e9184cb61eedce737a6cbc6f /ccan/tal/test/run-named-debug.c | |
| parent | bd8c223756d2f912526ecef53bae0cc8e0c63442 (diff) | |
remove ccan for now
Diffstat (limited to 'ccan/tal/test/run-named-debug.c')
| -rw-r--r-- | ccan/tal/test/run-named-debug.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/ccan/tal/test/run-named-debug.c b/ccan/tal/test/run-named-debug.c deleted file mode 100644 index 679e6ec..0000000 --- a/ccan/tal/test/run-named-debug.c +++ /dev/null @@ -1,35 +0,0 @@ -#define CCAN_TAL_DEBUG -#include <ccan/tal/tal.h> -#include <ccan/tal/tal.c> -#include <ccan/tap/tap.h> - -int main(void) -{ - int *p; - char name[] = "test name"; - - plan_tests(6); - - p = tal(NULL, int); - ok1(strcmp(tal_name(p), __FILE__ ":13:int") == 0); - - tal_set_name(p, "some literal"); - ok1(strcmp(tal_name(p), "some literal") == 0); - - tal_set_name(p, name); - ok1(strcmp(tal_name(p), name) == 0); - /* You can't reuse my pointer though! */ - ok1(tal_name(p) != name); - - tal_set_name(p, "some other literal"); - ok1(strcmp(tal_name(p), "some other literal") == 0); - - tal_free(p); - - p = tal_arr(NULL, int, 2); - ok1(strcmp(tal_name(p), __FILE__ ":29:int[]") == 0); - tal_free(p); - - tal_cleanup(); - return exit_status(); -} |
