failtest: internally eliminate duplicate calls.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 29 Nov 2011 22:39:11 +0000 (09:09 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 29 Nov 2011 22:39:11 +0000 (09:09 +1030)
commit57cc9494b0daacd23372cdbdefcd31fe9320c836
treef7aa77ff747203b48a4d768fc5533175cc5faf77
parent53de95c6adcb8951bef8a28dc8e0cb44de29d059
failtest: internally eliminate duplicate calls.

If we can get a backtrace, we can automatically eliminate identical
failures.  Surprisingly backtrace() is quite fast, but the savings for
the (naively-written) rbtree tests are impressive.  ccanlint -v time
drops from 43 seconds to 6 seconds.
ccan/failtest/_info
ccan/failtest/failtest.c
ccan/failtest/failtest.h
ccan/failtest/test/run-failpath.c
ccan/failtest/test/run-locking.c
ccan/failtest/test/run-malloc.c
ccan/failtest/test/run-open.c