summaryrefslogtreecommitdiff
path: root/lib/ntdb/test/no-fsync.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ntdb/test/no-fsync.h')
-rw-r--r--lib/ntdb/test/no-fsync.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ntdb/test/no-fsync.h b/lib/ntdb/test/no-fsync.h
new file mode 100644
index 0000000000..f0c098e23c
--- /dev/null
+++ b/lib/ntdb/test/no-fsync.h
@@ -0,0 +1,6 @@
+#ifndef NTDB_NO_FSYNC_H
+#define NTDB_NO_FSYNC_H
+/* Obey $TDB_NO_FSYNC, a bit like tdb does (only note our NTDB_NOSYNC
+ * does less) */
+#define MAYBE_NOSYNC (getenv("TDB_NO_FSYNC") ? NTDB_NOSYNC : 0)
+#endif