Mercurial > hg > octave-nkf > gnulib-hg
changeset 14813:d9fdb6400ff8
perror: avoid spurious test failure on HP-UX
The previous command has non-zero status. Even though 'exit 0'
is supposed to ignore prior status, HP-UX /bin/sh favors the
prior status if an exit trap is installed.
* tests/test-perror.sh: Use Exit to avoid wrong exit status.
Signed-off-by: Eric Blake <eblake@redhat.com>
author | Eric Blake <eblake@redhat.com> |
---|---|
date | Tue, 24 May 2011 10:14:52 -0600 |
parents | 6673bd443963 |
children | 23a793f9d5e4 |
files | ChangeLog tests/test-perror.sh |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2011-05-24 Eric Blake <eblake@redhat.com> + perror: avoid spurious test failure on HP-UX + * tests/test-perror.sh: Use Exit to avoid wrong exit status. + tests: fix logic bug in init.sh * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful shell.