5 Commits
Author SHA1 Message Date
Bruno Haible c1035211b3 perror tests: Tweak for z/OS.
Reported by Daniel Richard G. <skunk@iskunk.org>.
* tests/test-perror.sh: Don't fail z/OS style perror output.
2017-03-01 00:57:33 +01:00
Eric Blake 9d3a2863a1 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>
2011-05-24 11:05:45 -06:00
Eric Blake 98c78cdfd3 test-perror: rewrite to use init script
Make the test simpler, and also check for correct exit status.

* modules/perror-tests (Files): Add init.sh.
* tests/test-perror.sh: Use temporary directory.

Signed-off-by: Eric Blake <eblake@redhat.com>
2011-05-20 09:00:22 -06:00
Simon Josefsson 31523c2b53 test-perror.sh (tmpfiles): Cleanup temporary files on success. 2008-09-23 10:48:34 +02:00
Bruno Haible 17017b2d0c Tests for module 'perror'. 2008-09-14 13:53:02 +02:00