]> arthur.barton.de Git - bup.git/commitdiff
t/test.sh: skip two "tree SHA1 didn't change" tests on Cygwin for now.
authorRob Browning <rlb@defaultvalue.org>
Mon, 27 May 2013 16:51:23 +0000 (11:51 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 27 May 2013 17:28:51 +0000 (12:28 -0500)
Apparently Cygwin has some unusual behaviors with respect to access
times, so disable these two tests for now.

Possibly related: http://cygwin.com/ml/cygwin/2007-06/msg00436.html

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
README.md
t/test.sh

index 46b4e7a0d26f677c8cedad3b6c5fea55de9b56da..2d40826a02b4bb9127c9902abd264e5ab5809b47 100644 (file)
--- a/README.md
+++ b/README.md
@@ -264,6 +264,13 @@ Notes on Cygwin
  - There is no support for ACLs.  If/when some entrprising person
    fixes this, adjust t/compare-trees.
 
+ - In t/test.sh, two tests have been disabled.  These tests check to
+   see that repeated saves produce identical trees and that an
+   intervening index doesn't change the SHA1.  Apparently Cygwin has
+   some unusual behaviors with respect to access times (that probably
+   warrant further investigation).  Possibly related:
+   http://cygwin.com/ml/cygwin/2007-06/msg00436.html
+
 
 How it works
 ============
index 58c9cca25e153bc831cdf7232d4784a4f25e9f2d..c0d95537a72abf2706aad72c85ee83f00b4953b4 100755 (executable)
--- a/t/test.sh
+++ b/t/test.sh
@@ -126,10 +126,16 @@ a
 tree1=$(bup save -t $D) || WVFAIL
 WVPASSEQ "$(cd $D && bup index -m)" ""
 tree2=$(bup save -t $D) || WVFAIL
-WVPASSEQ "$tree1" "$tree2"
+if ! [[ $(uname) =~ CYGWIN ]]; then
+    # On Cygwin, the access time may change.
+    WVPASSEQ "$tree1" "$tree2"
+fi
 WVPASSEQ "$(bup index -s / | grep ^D)" ""
 tree3=$(bup save -t /) || WVFAIL
-WVPASSEQ "$tree1" "$tree3"
+if ! [[ $(uname) =~ CYGWIN ]]; then
+    # On Cygwin, the access time may change.
+    WVPASSEQ "$tree1" "$tree3"
+fi
 WVPASS bup save -r :$BUP_DIR -n r-test $D
 WVFAIL bup save -r :$BUP_DIR/fake/path -n r-test $D
 WVFAIL bup save -r :$BUP_DIR -n r-test $D/fake/path