1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-04 15:49:42 +02:00

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:
This commit is contained in:
Jim Meyering
2009-10-30 10:49:22 +01:00
parent 39da66f979
commit 12a0a583f6
5 changed files with 7 additions and 12 deletions
+2 -5
View File
@@ -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
+2 -4
View File
@@ -25,10 +25,8 @@ fi
case `df .` in
*'
'*)
fail=0;;
*)
fail=1;;
'*) ;;
*) fail=1;;
esac
Exit $fail
+1 -1
View File
@@ -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
+1 -1
View File
@@ -55,7 +55,7 @@ mv f foo
wait
case "`cat err`" in
*$ok) fail=0;;
*$ok) ;;
*) fail=1;;
esac
+1 -1
View File
@@ -43,7 +43,7 @@ mv f foo
wait
case "`cat err`" in
*$ok) fail=0;;
*$ok) ;;
*) fail=1;;
esac