mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-09-10 07:59:52 +02:00
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:
@@ -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
|
||||
|
||||
@@ -34,4 +34,4 @@ EOF
|
||||
|
||||
compare out exp || fail=1
|
||||
|
||||
(exit $fail); exit $fail
|
||||
Exit $fail
|
||||
|
||||
@@ -149,4 +149,4 @@ ln foo '' 2> /dev/null
|
||||
|
||||
# ===================================================
|
||||
|
||||
(exit $fail); exit $fail
|
||||
Exit $fail
|
||||
|
||||
@@ -34,4 +34,4 @@ case `cat err` in
|
||||
*) fail=1 ;;
|
||||
esac
|
||||
|
||||
(exit $fail); exit $fail
|
||||
Exit $fail
|
||||
|
||||
@@ -32,4 +32,4 @@ mkdir d || framework_failure
|
||||
fail=0
|
||||
ln -s --target-dir=d ../f || fail=1
|
||||
|
||||
(exit $fail); exit $fail
|
||||
Exit $fail
|
||||
|
||||
Reference in New Issue
Block a user