[ostree] tests: Add a test which exercises --fsync=false
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] tests: Add a test which exercises --fsync=false
- Date: Wed, 18 Jun 2014 22:26:10 +0000 (UTC)
commit 3d5ff5b542b2bf8e417e48afcfde4ecb9f27866f
Author: Colin Walters <walters verbum org>
Date: Wed Jun 18 18:24:41 2014 -0400
tests: Add a test which exercises --fsync=false
tests/test-basic.sh | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-basic.sh b/tests/test-basic.sh
index 0a9908d..e0e7132 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]