1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00
samba-mirror/lib/ntdb/test/no-fsync.h
Rusty Russell 0265837ee8 ntdb: respect TDB_NO_FSYNC flag for 'make test'
This reduces test time from 31 seconds to 6, on my laptop.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-06-22 07:35:16 +02:00

7 lines
206 B
C

#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