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>
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.
test-perror >out 2>/dev/null || fail_ "unexpected exit status"
test -s out && fail_ "unexpected output"
-exit 0
+Exit 0