summaryrefslogtreecommitdiff
path: root/tests/cp/file-perm-race
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-10-30 10:49:22 +0100
committerJim Meyering <meyering@redhat.com>2009-10-30 10:49:22 +0100
commit12a0a583f6fe3303bd9dfb30de4a5fe46e8e486f (patch)
tree407e9af16f016d6eddbb1ba0b88d2223d0bc5113 /tests/cp/file-perm-race
parent39da66f979c206946e5593dbd432e88905a9e383 (diff)
downloadcoreutils-12a0a583f6fe3303bd9dfb30de4a5fe46e8e486f.tar.xz
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:
Diffstat (limited to 'tests/cp/file-perm-race')
-rwxr-xr-xtests/cp/file-perm-race7
1 files changed, 2 insertions, 5 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