summaryrefslogtreecommitdiff
path: root/lib/tdb2/test/failtest_helper.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:18:13 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:18:13 +0930
commit617c1fcfa476d65320dc2c14b21016b6b438c090 (patch)
tree7a5560477526214b1b39f126feda3e97e5e3bb20 /lib/tdb2/test/failtest_helper.h
parent73e4f35e3d4dd7043a140355e4cd0f10f54c7337 (diff)
downloadsamba-617c1fcfa476d65320dc2c14b21016b6b438c090.tar.gz
samba-617c1fcfa476d65320dc2c14b21016b6b438c090.tar.bz2
samba-617c1fcfa476d65320dc2c14b21016b6b438c090.zip
tdb2: save openhook, allow tdb_get_attribute() on it.
This makes it easy to call it again after a fork(), such as for re-establishing the CLEAR_IF_FIRST files locks. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 937d0babe99dcd315040a9e48430140e63e4a7df)
Diffstat (limited to 'lib/tdb2/test/failtest_helper.h')
-rw-r--r--lib/tdb2/test/failtest_helper.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tdb2/test/failtest_helper.h b/lib/tdb2/test/failtest_helper.h
index a62efbad58..73cd1aeb1e 100644
--- a/lib/tdb2/test/failtest_helper.h
+++ b/lib/tdb2/test/failtest_helper.h
@@ -4,9 +4,9 @@
#include <stdbool.h>
/* FIXME: Check these! */
-#define INITIAL_TDB_MALLOC "open.c", 338, FAILTEST_MALLOC
-#define URANDOM_OPEN "open.c", 45, FAILTEST_OPEN
-#define URANDOM_READ "open.c", 25, FAILTEST_READ
+#define INITIAL_TDB_MALLOC "open.c", 354, FAILTEST_MALLOC
+#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 failmatch(const struct failtest_call *call,