diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-22 09:17:13 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-22 07:35:16 +0200 |
commit | 0265837ee8ab98b00c18411bee3770075e27f900 (patch) | |
tree | bd86ad96f568abc5896b0ba51f0c944b48815cfc /lib/ntdb/test/no-fsync.h | |
parent | 0c54e7c93627963401a1deec1e0bd1c65bdeea00 (diff) | |
download | samba-0265837ee8ab98b00c18411bee3770075e27f900.tar.gz samba-0265837ee8ab98b00c18411bee3770075e27f900.tar.bz2 samba-0265837ee8ab98b00c18411bee3770075e27f900.zip |
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>
Diffstat (limited to 'lib/ntdb/test/no-fsync.h')
-rw-r--r-- | lib/ntdb/test/no-fsync.h | 6 |
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 |