X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftal%2Ftest%2Frun.c;h=ab4341f2c93f443bfdc6b61f84ce57c4fa45be2b;hb=0f6d854ab9d85ac7e4487ff3eee464be6bb528aa;hp=3d3799c55492b989a59720d98423b7ccfbee1f9e;hpb=dfe59969500a0c4e3b82ce6e7f8227d1a6e7b178;p=ccan diff --git a/ccan/tal/test/run.c b/ccan/tal/test/run.c index 3d3799c5..ab4341f2 100644 --- a/ccan/tal/test/run.c +++ b/ccan/tal/test/run.c @@ -7,7 +7,10 @@ int main(void) char *parent, *c[4], *p; int i, j; - plan_tests(12); + plan_tests(14); + + /* tal_free(NULL) works. */ + ok1(tal_free(NULL) == NULL); parent = tal(NULL, char); ok1(parent); @@ -33,7 +36,7 @@ int main(void) ok1(*c[3] == '1'); /* Free parent. */ - tal_free(parent); + ok1(tal_free(parent) == NULL); parent = tal(NULL, char);