]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: remove the less-regular fail=0 assignments manually
authorJim Meyering <meyering@redhat.com>
Fri, 30 Oct 2009 09:49:22 +0000 (10:49 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 30 Oct 2009 09:49:22 +0000 (10:49 +0100)
* 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
tests/misc/df
tests/misc/truncate-dir-fail
tests/tail-2/assert
tests/tail-2/assert-2

index 8ae7cb04e85ecc8fd7592bee2eecea2da2e486d7..3b71a7cb521795da42b370d41104acdd9d09f1f0 100755 (executable)
@@ -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
index 790309cceacbc17960e88d1d81bdbaecd59a98cc..4ebd29b56a98de8355a325b16ef560dba2b76e37 100755 (executable)
@@ -25,10 +25,8 @@ fi
 
 case `df .` in
 *'
-'*)
-  fail=0;;
-*)
-  fail=1;;
+'*) ;;
+*) fail=1;;
 esac
 
 Exit $fail
index 942c6b4ccb5a26089b9c25b5127dc2725389da68..d1a67e4ba557a8f0a619ef4121c630116c94ac99 100755 (executable)
@@ -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
index 416f206a19a07a944623202e1e73be3c92671ac9..65e4ab3c3b739ae6657fdb13d525cd722b5deefb 100755 (executable)
@@ -55,7 +55,7 @@ mv f foo
 wait
 
 case "`cat err`" in
-  *$ok) fail=0;;
+  *$ok) ;;
   *) fail=1;;
 esac
 
index f3ef89d365b65c1a27be5d1be7ae5ae7a7e59645..17b0d55687559442c15e14c207d62a2db3b63f57 100755 (executable)
@@ -43,7 +43,7 @@ mv f foo
 wait
 
 case "`cat err`" in
-  *$ok) fail=0;;
+  *$ok) ;;
   *) fail=1;;
 esac