[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/2] perror: avoid spurious test failure on HP-UX
From: |
Eric Blake |
Subject: |
[PATCH 2/2] perror: avoid spurious test failure on HP-UX |
Date: |
Tue, 24 May 2011 10:23:19 -0600 |
The next-to-last command in this test 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 <address@hidden>
---
ChangeLog | 3 +++
tests/test-perror.sh | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2047b73..ecf18a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2011-05-24 Eric Blake <address@hidden>
+ 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.
diff --git a/tests/test-perror.sh b/tests/test-perror.sh
index 28027ea..7274d32 100755
--- a/tests/test-perror.sh
+++ b/tests/test-perror.sh
@@ -21,4 +21,4 @@ diff t-perror2.tmp t-perror3.tmp || fail_ "prefix applied
incorrectly"
test-perror >out 2>/dev/null || fail_ "unexpected exit status"
test -s out && fail_ "unexpected output"
-exit 0
+Exit 0
--
1.7.4.4