|
@@ -98,6 +98,10 @@ static bool test_death(enum operation op, struct agent *agent)
|
|
|
|
|
|
|
|
current = target = 0;
|
|
current = target = 0;
|
|
|
reset:
|
|
reset:
|
|
|
|
|
+ unlink(TEST_DBNAME);
|
|
|
|
|
+ tdb = tdb_open_ex(TEST_DBNAME, 1024, TDB_NOMMAP,
|
|
|
|
|
+ O_CREAT|O_TRUNC|O_RDWR, 0600, &taplogctx, NULL);
|
|
|
|
|
+
|
|
|
if (setjmp(jmpbuf) != 0) {
|
|
if (setjmp(jmpbuf) != 0) {
|
|
|
/* We're partway through. Simulate our death. */
|
|
/* We're partway through. Simulate our death. */
|
|
|
close(tdb->fd);
|
|
close(tdb->fd);
|
|
@@ -153,10 +157,6 @@ reset:
|
|
|
goto reset;
|
|
goto reset;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- unlink(TEST_DBNAME);
|
|
|
|
|
- tdb = tdb_open_ex(TEST_DBNAME, 1024, TDB_NOMMAP,
|
|
|
|
|
- O_CREAT|O_TRUNC|O_RDWR, 0600, &taplogctx, NULL);
|
|
|
|
|
-
|
|
|
|
|
/* Put key for agent to fetch. */
|
|
/* Put key for agent to fetch. */
|
|
|
key.dsize = strlen(KEY_STRING);
|
|
key.dsize = strlen(KEY_STRING);
|
|
|
key.dptr = (void *)KEY_STRING;
|
|
key.dptr = (void *)KEY_STRING;
|