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/'
This commit is contained in:
Jim Meyering
2008-09-07 10:31:27 +02:00
parent 22e5102f19
commit 68561594ca
300 changed files with 323 additions and 311 deletions

View File

@@ -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

View File

@@ -34,4 +34,4 @@ EOF
compare out exp || fail=1
(exit $fail); exit $fail
Exit $fail

View File

@@ -149,4 +149,4 @@ ln foo '' 2> /dev/null
# ===================================================
(exit $fail); exit $fail
Exit $fail

View File

@@ -34,4 +34,4 @@ case `cat err` in
*) fail=1 ;;
esac
(exit $fail); exit $fail
Exit $fail

View File

@@ -32,4 +32,4 @@ mkdir d || framework_failure
fail=0
ln -s --target-dir=d ../f || fail=1
(exit $fail); exit $fail
Exit $fail