summaryrefslogtreecommitdiff
path: root/tests/chgrp
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-09-07 10:31:27 +0200
committerJim Meyering <meyering@redhat.com>2008-09-10 13:20:10 +0200
commit68561594ca022703e255b3ef5686f176317e5fd4 (patch)
tree2bb17f465ad51bb9bf212b871a95b877e558d2e0 /tests/chgrp
parent22e5102f1961c5552d20c3791cbc99b6b001e83f (diff)
downloadcoreutils-68561594ca022703e255b3ef5686f176317e5fd4.tar.xz
tests: use "Exit $fail", not (exit $fail); exit $fail
* tests/test-lib.sh (Exit): New function by Ralf Wildenhues in automake http://git.sv.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=20594c08f63 * tests/**: Convert all uses: This restrictive change converted the vast majority: git grep -l '^(exit \$fail); exit \$fail$' \ | xargs perl -pi -e 's/'^\(exit \$fail\); exit \$fail$/Exit \$fail/' And this did the rest, plus a few undesirable ones, so I manually backed out the changes to ChangeLog-* and build-aux/check.mk: git grep -l -E '\(exit [^)]+\); exit ' \ | xargs perl -pi -e 's/\(exit (.+?)\); exit \1/Exit $1/'
Diffstat (limited to 'tests/chgrp')
-rwxr-xr-xtests/chgrp/basic2
-rwxr-xr-xtests/chgrp/default-no-deref2
-rwxr-xr-xtests/chgrp/deref2
-rwxr-xr-xtests/chgrp/no-x2
-rwxr-xr-xtests/chgrp/posix-H2
-rwxr-xr-xtests/chgrp/recurse2
6 files changed, 6 insertions, 6 deletions
diff --git a/tests/chgrp/basic b/tests/chgrp/basic
index cd7497871..94297ea5a 100755
--- a/tests/chgrp/basic
+++ b/tests/chgrp/basic
@@ -112,4 +112,4 @@ test "`ls -C -c -t f g`" = 'f g' || \
esac
}
-(exit $fail); exit $fail
+Exit $fail
diff --git a/tests/chgrp/default-no-deref b/tests/chgrp/default-no-deref
index f7ffc94b8..aac16fe6f 100755
--- a/tests/chgrp/default-no-deref
+++ b/tests/chgrp/default-no-deref
@@ -35,4 +35,4 @@ g_init=`stat --printf=%g f`
chgrp -R $g2 d || fail=1
test `stat --printf=%g f` = $g_init || fail=1
-(exit $fail); exit $fail
+Exit $fail
diff --git a/tests/chgrp/deref b/tests/chgrp/deref
index e63a14228..08aa141ac 100755
--- a/tests/chgrp/deref
+++ b/tests/chgrp/deref
@@ -62,4 +62,4 @@ chgrp --dereference $g1 symlink
set _ `ls -ln f`; g=$5; test "$g" = $g1 || fail=1
set _ `ls -ln symlink`; g=$5; test "$g" = $g2 || fail=1
-(exit $fail); exit $fail
+Exit $fail
diff --git a/tests/chgrp/no-x b/tests/chgrp/no-x
index 4cf168560..f133ad6c8 100755
--- a/tests/chgrp/no-x
+++ b/tests/chgrp/no-x
@@ -56,4 +56,4 @@ EOF
compare out exp || fail=1
-(exit $fail); exit $fail
+Exit $fail
diff --git a/tests/chgrp/posix-H b/tests/chgrp/posix-H
index b376e4ac5..a1db5655a 100755
--- a/tests/chgrp/posix-H
+++ b/tests/chgrp/posix-H
@@ -72,4 +72,4 @@ for i in $not_changed; do
test $group = $g1 || fail=1
done
-(exit $fail); exit $fail
+Exit $fail
diff --git a/tests/chgrp/recurse b/tests/chgrp/recurse
index e4f90a6b7..a1f371288 100755
--- a/tests/chgrp/recurse
+++ b/tests/chgrp/recurse
@@ -55,4 +55,4 @@ set _ `ls -ln e/ee`; g=$5; test "$g" = $g2 || fail=1
# But it *should* change d/dd.
set _ `ls -ln d/dd`; g=$5; test "$g" = $g1 || fail=1
-(exit $fail); exit $fail
+Exit $fail