summaryrefslogtreecommitdiff
path: root/lib/ntdb/test/api-83-openhook.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ntdb/test/api-83-openhook.c')
-rw-r--r--lib/ntdb/test/api-83-openhook.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ntdb/test/api-83-openhook.c b/lib/ntdb/test/api-83-openhook.c
index 666b4b8d8f..31c789ead8 100644
--- a/lib/ntdb/test/api-83-openhook.c
+++ b/lib/ntdb/test/api-83-openhook.c
@@ -60,15 +60,15 @@ int main(int argc, char *argv[])
plan_tests(sizeof(flags) / sizeof(flags[0]) * 13);
for (i = 0; i < sizeof(flags) / sizeof(flags[0]); i++) {
/* Create it */
- ntdb = ntdb_open("run-83-openhook.ntdb", flags[i],
- O_RDWR|O_CREAT|O_TRUNC, 0600, NULL);
+ ntdb = ntdb_open("run-83-openhook.ntdb", flags[i]|MAYBE_NOSYNC,
+ O_RDWR|O_CREAT|O_TRUNC, 0600, NULL);
ok1(ntdb);
ok1(ntdb_store(ntdb, key, key, NTDB_REPLACE) == 0);
ntdb_close(ntdb);
/* Now, open with CIF, should clear it. */
- ntdb = ntdb_open("run-83-openhook.ntdb", flags[i],
- O_RDWR, 0, &cif);
+ ntdb = ntdb_open("run-83-openhook.ntdb", flags[i]|MAYBE_NOSYNC,
+ O_RDWR, 0, &cif);
ok1(ntdb);
ok1(!ntdb_exists(ntdb, key));
ok1(ntdb_store(ntdb, key, key, NTDB_REPLACE) == 0);