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/run-56-open-during-transaction.c | |
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/run-56-open-during-transaction.c')
-rw-r--r-- | lib/ntdb/test/run-56-open-during-transaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ntdb/test/run-56-open-during-transaction.c b/lib/ntdb/test/run-56-open-during-transaction.c index f585aa13c8..1c8786ce2f 100644 --- a/lib/ntdb/test/run-56-open-during-transaction.c +++ b/lib/ntdb/test/run-56-open-during-transaction.c @@ -144,8 +144,8 @@ int main(int argc, char *argv[]) (flags[i] & NTDB_CONVERT) ? "CONVERT" : "DEFAULT", (flags[i] & NTDB_NOMMAP) ? "no mmap" : "mmap"); unlink(TEST_DBNAME); - ntdb = ntdb_open(TEST_DBNAME, flags[i], - O_RDWR|O_CREAT|O_TRUNC, 0600, &tap_log_attr); + ntdb = ntdb_open(TEST_DBNAME, flags[i]|MAYBE_NOSYNC, + O_RDWR|O_CREAT|O_TRUNC, 0600, &tap_log_attr); ok1(ntdb); opened = true; |