]> git.ozlabs.org Git - ccan/commit
rfc822: fix sigaction test, wean off ccan-specific talloc_set_allocator()
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 7 Dec 2012 05:56:37 +0000 (16:26 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 7 Dec 2012 05:56:37 +0000 (16:26 +1030)
commitd3cbb4cbbc38c96c3a20a7e4e602be7327f25202
treeef33b47d1ee510f869e5802f0080005280de89ea
parent49ac066464e0127e4b9924b150bf47473ab733ae
rfc822: fix sigaction test, wean off ccan-specific talloc_set_allocator()

The first ok() line was actually failing, because sigaction returns 0
on success, but because the program exit(0) out the abort handler,
that wasn't being seen.

So remove tap and just abort and assert our way through the test,
which I think is clearer.

We use macros to mug the talloc entry points, since talloc_set_allocator()
is not in mainline talloc.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/rfc822/test/run-default-alloc-failure.c