summaryrefslogtreecommitdiff
path: root/lib/tdb2/test/failtest_helper.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-12-05 17:03:30 +1030
committerRusty Russell <rusty@rustcorp.com.au>2011-12-05 17:03:30 +1030
commit6d248534936ce5169d651b7d5e47ae8c74efb610 (patch)
treee98e09b60b3eaa0c378ad94e80bbd71e5477e5e8 /lib/tdb2/test/failtest_helper.h
parent7f95ad045a36f1d40f66c815c9461bd5720c5808 (diff)
downloadsamba-6d248534936ce5169d651b7d5e47ae8c74efb610.tar.gz
samba-6d248534936ce5169d651b7d5e47ae8c74efb610.tar.bz2
samba-6d248534936ce5169d651b7d5e47ae8c74efb610.zip
tdb2: failtest: use a linked list for history, not an array.
This avoids a silly realloc, but more importantly it gets us closer to being runtime extensible, as each history element can be a different size. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 9571a41e8494f3135557e3ec50c2de856392173e)
Diffstat (limited to 'lib/tdb2/test/failtest_helper.h')
-rw-r--r--lib/tdb2/test/failtest_helper.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/tdb2/test/failtest_helper.h b/lib/tdb2/test/failtest_helper.h
index 7f912bb5e9..a3c680885d 100644
--- a/lib/tdb2/test/failtest_helper.h
+++ b/lib/tdb2/test/failtest_helper.h
@@ -8,11 +8,10 @@
#define URANDOM_OPEN "open.c", 62, FAILTEST_OPEN
#define URANDOM_READ "open.c", 42, FAILTEST_READ
-bool exit_check_log(struct failtest_call *history, unsigned num);
+bool exit_check_log(struct tlist_calls *history);
bool failmatch(const struct failtest_call *call,
const char *file, int line, enum failtest_call_type type);
-enum failtest_result
-block_repeat_failures(struct failtest_call *history, unsigned num);
+enum failtest_result block_repeat_failures(struct tlist_calls *history);
/* Set this to suppress failure. */
extern bool failtest_suppress;