mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-21 11:16:16 +02:00
Replace all occurrences of `(exit N); exit' with
`(exit N); exit N'. Otherwise, those many tests could exit with improper exit status when exiting via e.g., a trapped interrupt. Thanks to a report from Bob Proulx.
This commit is contained in:
@@ -18,7 +18,7 @@ cd $tmp || framework_failure=1
|
||||
|
||||
if test $framework_failure = 1; then
|
||||
echo 'failure in testing framework'
|
||||
(exit 1); exit
|
||||
(exit 1); exit 1
|
||||
fi
|
||||
|
||||
mkdir -p $tmp/1 $tmp/2
|
||||
@@ -31,4 +31,4 @@ du $tmp/1 $tmp/2 > /dev/null || fail=1
|
||||
du . $tmp > /dev/null || fail=1
|
||||
du .. $tmp > /dev/null || fail=1
|
||||
|
||||
(exit $fail); exit
|
||||
(exit $fail); exit $fail
|
||||
|
||||
Reference in New Issue
Block a user