From 0265837ee8ab98b00c18411bee3770075e27f900 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 22 Jun 2012 09:17:13 +0930 Subject: 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 --- lib/ntdb/test/run-04-basichash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ntdb/test/run-04-basichash.c') diff --git a/lib/ntdb/test/run-04-basichash.c b/lib/ntdb/test/run-04-basichash.c index 264932b988..9888f6e551 100644 --- a/lib/ntdb/test/run-04-basichash.c +++ b/lib/ntdb/test/run-04-basichash.c @@ -30,8 +30,8 @@ int main(int argc, char *argv[]) struct hash_info h; ntdb_off_t new_off, new_off2, off; - ntdb = ntdb_open("run-04-basichash.ntdb", flags[i], - O_RDWR|O_CREAT|O_TRUNC, 0600, &hattr); + ntdb = ntdb_open("run-04-basichash.ntdb", flags[i]|MAYBE_NOSYNC, + O_RDWR|O_CREAT|O_TRUNC, 0600, &hattr); ok1(ntdb); if (!ntdb) continue; -- cgit