summaryrefslogtreecommitdiff
path: root/tests/install
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/install
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/install')
-rwxr-xr-xtests/install/basic-12
-rwxr-xr-xtests/install/create-leading2
-rwxr-xr-xtests/install/d-slashdot2
-rwxr-xr-xtests/install/strip-program2
-rwxr-xr-xtests/install/trap2
5 files changed, 5 insertions, 5 deletions
diff --git a/tests/install/basic-1 b/tests/install/basic-1
index 31f321545..09c8d4437 100755
--- a/tests/install/basic-1
+++ b/tests/install/basic-1
@@ -126,4 +126,4 @@ ginstall: creating directory `sub3/a/b/c'
`file' -> `sub3/a/b/c/file'
EOF
-(exit $fail); exit $fail
+Exit $fail
diff --git a/tests/install/create-leading b/tests/install/create-leading
index 3e6079245..55d20eb2e 100755
--- a/tests/install/create-leading
+++ b/tests/install/create-leading
@@ -37,4 +37,4 @@ ginstall -D $file no-dir1/no-dir2/dest || fail=1
test -d no-dir1/no-dir2 || fail=1
test -r no-dir1/no-dir2/dest || fail=1
-(exit $fail); exit $fail
+Exit $fail
diff --git a/tests/install/d-slashdot b/tests/install/d-slashdot
index 057c7bef2..e02e2c6b1 100755
--- a/tests/install/d-slashdot
+++ b/tests/install/d-slashdot
@@ -31,4 +31,4 @@ test -d d1 || fail=1
ginstall -d d2/.. || fail=1
test -d d2 || fail=1
-(exit $fail); exit $fail
+Exit $fail
diff --git a/tests/install/strip-program b/tests/install/strip-program
index 57597fcd3..98f7febea 100755
--- a/tests/install/strip-program
+++ b/tests/install/strip-program
@@ -38,4 +38,4 @@ echo aBc > exp || fail=1
ginstall src dest -s --strip-program=./b || fail=1
compare dest exp || fail=1
-(exit $fail); exit $fail
+Exit $fail
diff --git a/tests/install/trap b/tests/install/trap
index 5b2b115e1..f03899fe9 100755
--- a/tests/install/trap
+++ b/tests/install/trap
@@ -35,4 +35,4 @@ fail=0
exec ginstall -s "$abs_top_builddir/src/ginstall$EXEEXT" .
)
-(exit $fail); exit $fail
+Exit $fail