summaryrefslogtreecommitdiff
path: root/tests/readlink
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/readlink
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/readlink')
-rwxr-xr-xtests/readlink/can-e2
-rwxr-xr-xtests/readlink/can-f2
-rwxr-xr-xtests/readlink/can-m2
-rwxr-xr-xtests/readlink/rl-12
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/readlink/can-e b/tests/readlink/can-e
index 72c2c5cd3..6316ff98f 100755
--- a/tests/readlink/can-e
+++ b/tests/readlink/can-e
@@ -107,4 +107,4 @@ for p in "" "$pwd/$tmp/"; do
test -z "$v" || fail=1
done
-(exit $fail); exit $fail
+Exit $fail
diff --git a/tests/readlink/can-f b/tests/readlink/can-f
index 67f84b92f..9e19eb015 100755
--- a/tests/readlink/can-f
+++ b/tests/readlink/can-f
@@ -140,4 +140,4 @@ for p in "" "$pwd/$tmp/"; do
test -z "$v" || fail=1
done
-(exit $fail); exit $fail
+Exit $fail
diff --git a/tests/readlink/can-m b/tests/readlink/can-m
index 24f98c985..d20dcd73b 100755
--- a/tests/readlink/can-m
+++ b/tests/readlink/can-m
@@ -144,4 +144,4 @@ for p in "" "$pwd/$tmp/"; do
done
-(exit $fail); exit $fail
+Exit $fail
diff --git a/tests/readlink/rl-1 b/tests/readlink/rl-1
index 91401b0f4..cdde35bae 100755
--- a/tests/readlink/rl-1
+++ b/tests/readlink/rl-1
@@ -45,4 +45,4 @@ test -z "$v" || fail=1
v=`readlink missing` && fail=1
test -z "$v" || fail=1
-(exit $fail); exit $fail
+Exit $fail