ntdb: respect TDB_NO_FSYNC flag for 'make test'
[kai/samba-autobuild/.git] / lib / ntdb / test / api-record-expand.c
index cea5a10bfbba83131ac3398e3edba5c960e4ec48..8786fc7e5c4c8f8603e18d608f2a33cf79ab23da 100644 (file)
@@ -26,8 +26,9 @@ int main(int argc, char *argv[])
        plan_tests(sizeof(flags) / sizeof(flags[0])
                   * (3 + (1 + (MAX_SIZE/SIZE_STEP)) * 2) + 1);
        for (i = 0; i < sizeof(flags) / sizeof(flags[0]); i++) {
-               ntdb = ntdb_open("run-record-expand.ntdb", flags[i],
-                              O_RDWR|O_CREAT|O_TRUNC, 0600, &tap_log_attr);
+               ntdb = ntdb_open("run-record-expand.ntdb",
+                                flags[i]|MAYBE_NOSYNC,
+                                O_RDWR|O_CREAT|O_TRUNC, 0600, &tap_log_attr);
                ok1(ntdb);
                if (!ntdb)
                        continue;