diff options
| author | Jim Meyering <meyering@redhat.com> | 2008-03-28 12:30:26 +0100 |
|---|---|---|
| committer | Jim Meyering <meyering@redhat.com> | 2008-03-28 14:21:27 +0100 |
| commit | 818dbee8dc1a50f6dbc1ba85f7f25a47ded09930 (patch) | |
| tree | a41919bce1bb89d83c10e11b9068d32706c0ba3c /tests/misc/pwd-long | |
| parent | paste -d\\: avoid heap overrun for backslash at end of delim list (diff) | |
| download | coreutils-818dbee8dc1a50f6dbc1ba85f7f25a47ded09930.tar.gz coreutils-818dbee8dc1a50f6dbc1ba85f7f25a47ded09930.zip | |
Perform explicit exit-nonzero if the embedded Perl script fails.
* tests/misc/pwd-long: Add canonical '(exit $fail); exit $fail'.
Signed-off-by: Jim Meyering <meyering@redhat.com>
Diffstat (limited to 'tests/misc/pwd-long')
| -rwxr-xr-x | tests/misc/pwd-long | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/misc/pwd-long b/tests/misc/pwd-long index d931d3462..37b552c4c 100755 --- a/tests/misc/pwd-long +++ b/tests/misc/pwd-long @@ -1,4 +1,5 @@ #!/bin/sh +# -*- perl -*- # Ensure that pwd works even when run from a very deep directory. # Copyright (C) 2006-2008 Free Software Foundation, Inc. @@ -112,3 +113,7 @@ if ($expected ne $actual) exit 1; } EOF + +fail=$? + +(exit $fail); exit $fail |
