perror: avoid spurious test failure on HP-UX
authorEric Blake <eblake@redhat.com>
Tue, 24 May 2011 16:14:52 +0000 (10:14 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 24 May 2011 17:05:45 +0000 (11:05 -0600)
commit9d3a2863a14f0d0ea5ef48c42684921e30e9fac6
tree8e51f880667aef139c567f9892f7de84a929c479
parent866bbaee7bf64b5f54b2b3d566552782dfb514dd
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>
ChangeLog
tests/test-perror.sh