From 12a0a583f6fe3303bd9dfb30de4a5fe46e8e486f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 30 Oct 2009 10:49:22 +0100 Subject: tests: remove the less-regular fail=0 assignments manually * tests/tail-2/assert-2: * tests/tail-2/assert: * tests/cp/file-perm-race: * tests/misc/df: * tests/misc/truncate-dir-fail: --- tests/cp/file-perm-race | 7 ++----- tests/misc/df | 6 ++---- tests/misc/truncate-dir-fail | 2 +- tests/tail-2/assert | 2 +- tests/tail-2/assert-2 | 2 +- 5 files changed, 7 insertions(+), 12 deletions(-) diff --git a/tests/cp/file-perm-race b/tests/cp/file-perm-race index 8ae7cb04e..3b71a7cb5 100755 --- a/tests/cp/file-perm-race +++ b/tests/cp/file-perm-race @@ -23,7 +23,6 @@ fi . $srcdir/test-lib.sh -fail=0 umask 022 mkfifo fifo || skip_test_ "fifos not supported" @@ -50,10 +49,8 @@ cp_pid=$! ) >fifo case `cat ls.out` in --???------*) - fail=0;; -*) - fail=1;; +-???------*) ;; +*) fail=1;; esac wait $cp_pid || fail=1 diff --git a/tests/misc/df b/tests/misc/df index 790309cce..4ebd29b56 100755 --- a/tests/misc/df +++ b/tests/misc/df @@ -25,10 +25,8 @@ fi case `df .` in *' -'*) - fail=0;; -*) - fail=1;; +'*) ;; +*) fail=1;; esac Exit $fail diff --git a/tests/misc/truncate-dir-fail b/tests/misc/truncate-dir-fail index 942c6b4cc..d1a67e4ba 100755 --- a/tests/misc/truncate-dir-fail +++ b/tests/misc/truncate-dir-fail @@ -9,6 +9,6 @@ fi . $srcdir/test-lib.sh # truncate on dir not allowed -truncate -s+0 . && fail=1 || fail=0 +truncate -s+0 . && fail=1 Exit $fail diff --git a/tests/tail-2/assert b/tests/tail-2/assert index 416f206a1..65e4ab3c3 100755 --- a/tests/tail-2/assert +++ b/tests/tail-2/assert @@ -55,7 +55,7 @@ mv f foo wait case "`cat err`" in - *$ok) fail=0;; + *$ok) ;; *) fail=1;; esac diff --git a/tests/tail-2/assert-2 b/tests/tail-2/assert-2 index f3ef89d36..17b0d5568 100755 --- a/tests/tail-2/assert-2 +++ b/tests/tail-2/assert-2 @@ -43,7 +43,7 @@ mv f foo wait case "`cat err`" in - *$ok) fail=0;; + *$ok) ;; *) fail=1;; esac -- cgit v1.2.3-54-g00ecf