ntdb: respect TDB_NO_FSYNC flag for 'make test'
[samba.git] / lib / ntdb / test / api-locktimeout.c
index cafe067d0bb8e1a02ed18200c279d6bcf0c8c739..5e24d58dc438e6946fb46cd089d216e11a69f808 100644 (file)
@@ -142,8 +142,9 @@ int main(int argc, char *argv[])
 
        for (i = 0; i < sizeof(flags) / sizeof(flags[0]); i++) {
                enum NTDB_ERROR ecode;
-               ntdb = ntdb_open("run-locktimeout.ntdb", flags[i],
-                              O_RDWR|O_CREAT|O_TRUNC, 0600, &tap_log_attr);
+               ntdb = ntdb_open("run-locktimeout.ntdb",
+                                flags[i]|MAYBE_NOSYNC,
+                                O_RDWR|O_CREAT|O_TRUNC, 0600, &tap_log_attr);
                if (!ok1(ntdb))
                        break;