summaryrefslogtreecommitdiff
path: root/tests/ln
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/ln
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/ln')
-rwxr-xr-xtests/ln/backup-12
-rwxr-xr-xtests/ln/hard-backup2
-rwxr-xr-xtests/ln/misc2
-rwxr-xr-xtests/ln/sf-12
-rwxr-xr-xtests/ln/target-12
5 files changed, 5 insertions, 5 deletions
diff --git a/tests/ln/backup-1 b/tests/ln/backup-1
index f796f3abf..0aff4f3d9 100755
--- a/tests/ln/backup-1
+++ b/tests/ln/backup-1
@@ -31,4 +31,4 @@ touch a b || framework_failure
ln b b~ || fail=1
ln -f --b=simple a b || fail=1
-(exit $fail); exit $fail
+Exit $fail
diff --git a/tests/ln/hard-backup b/tests/ln/hard-backup
index 90f8cd85b..c02b265b6 100755
--- a/tests/ln/hard-backup
+++ b/tests/ln/hard-backup
@@ -34,4 +34,4 @@ EOF
compare out exp || fail=1
-(exit $fail); exit $fail
+Exit $fail
diff --git a/tests/ln/misc b/tests/ln/misc
index f8ec46fca..a4a925407 100755
--- a/tests/ln/misc
+++ b/tests/ln/misc
@@ -149,4 +149,4 @@ ln foo '' 2> /dev/null
# ===================================================
-(exit $fail); exit $fail
+Exit $fail
diff --git a/tests/ln/sf-1 b/tests/ln/sf-1
index 2dd3d8c2e..d00df6e02 100755
--- a/tests/ln/sf-1
+++ b/tests/ln/sf-1
@@ -34,4 +34,4 @@ case `cat err` in
*) fail=1 ;;
esac
-(exit $fail); exit $fail
+Exit $fail
diff --git a/tests/ln/target-1 b/tests/ln/target-1
index e60106c7f..d088e2417 100755
--- a/tests/ln/target-1
+++ b/tests/ln/target-1
@@ -32,4 +32,4 @@ mkdir d || framework_failure
fail=0
ln -s --target-dir=d ../f || fail=1
-(exit $fail); exit $fail
+Exit $fail