From 3d5ff5b542b2bf8e417e48afcfde4ecb9f27866f Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 18 Jun 2014 18:24:41 -0400 Subject: [PATCH] tests: Add a test which exercises --fsync=false --- tests/test-basic.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test-basic.sh b/tests/test-basic.sh index 0a9908de..e0e71329 100755 --- a/tests/test-basic.sh +++ b/tests/test-basic.sh @@ -328,3 +328,9 @@ if $OSTREE commit -b test2 -s "Attempt to commit a FIFO" 2>../errmsg; then fi echo "ok commit of fifo was rejected" +cd ${test_tmpdir} +rm -rf test2-checkout +mkdir -p test2-checkout +cd test2-checkout +touch should-not-be-fsynced +$OSTREE commit -b test2 -s "Unfsynced commit" --fsync=false