From 68561594ca022703e255b3ef5686f176317e5fd4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 7 Sep 2008 10:31:27 +0200 Subject: 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/' --- tests/ln/backup-1 | 2 +- tests/ln/hard-backup | 2 +- tests/ln/misc | 2 +- tests/ln/sf-1 | 2 +- tests/ln/target-1 | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/ln') 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 -- cgit v1.2.3-70-g09d2