# HG changeset patch # User Jim Meyering # Date 1324554152 -3600 # Node ID a6a6647d041e1216456681103c2403e03d83079f # Parent 5dd745d168ae3e915b9d6b7b00be53b1d389a485 init.sh: avoid unwarranted test failure when using "set -x" * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_. Otherwise, in a test script that uses "set -x" (like many in vc-dwim) a use like "compare exp out" would get evoke an unconditional failure. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-12-22 Jim Meyering + + init.sh: avoid unwarranted test failure when using "set -x" + * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_. + Otherwise, in a test script that uses "set -x" (like many in vc-dwim) + a use like "compare exp out" would get evoke an unconditional failure. + 2011-12-21 Alfred M. Szmidt bootstrap: fix it to honor $ACLOCAL_FLAGS once again diff --git a/tests/init.sh b/tests/init.sh --- a/tests/init.sh +++ b/tests/init.sh @@ -304,7 +304,7 @@ # Otherwise, propagate $? to caller: any diffs have already been printed. compare () { - compare_dev_null_ "$@" + compare_dev_null_ "$@" || : case $? in 0|1) return $?;; *) compare_ "$@";;