summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2009-11-04 22:07:30 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2009-11-04 22:07:30 (GMT)
commit3e3731f93d7e3ba97813117c09e9a2adda5c6435 (patch)
treed75c229257c7466ce8b18b60eb94cee4a28e6e48 /test
parent6d639e66b731d832236dbb133eb3ec4746b39afd (diff)
downloadhdf5-3e3731f93d7e3ba97813117c09e9a2adda5c6435.zip
hdf5-3e3731f93d7e3ba97813117c09e9a2adda5c6435.tar.gz
hdf5-3e3731f93d7e3ba97813117c09e9a2adda5c6435.tar.bz2
[svn-r17831] Bug fix:(sort of)
Some systems, like AIX poe, interpret exit(134) the same as if the process has really been interrupted by the abort signal and prints extra messages that confuse test script which is looking for matching output. Solution: Changed it to exit(6) which still has the "appearance" of an abort signal which carries the value of 6 in Unix systems. Tested: LLNL Up both serial and Parallel.
Diffstat (limited to 'test')
-rw-r--r--test/tcheck_version.c7
-rw-r--r--test/testcheck_version.sh.in2
2 files changed, 6 insertions, 3 deletions
diff --git a/test/tcheck_version.c b/test/tcheck_version.c
index d8894b3..91d98ef 100644
--- a/test/tcheck_version.c
+++ b/test/tcheck_version.c
@@ -96,7 +96,10 @@ parse(int ac, char **av)
}
/* Handler for SIGABRT - catch the abort signal supposedly from check_version()
- * and exit(134). 134 would have been the return code in Unix systems.
+ * and exit(6). Would have used 134 is the return code in Unix systems
+ * but some systems (e.g., poe in AIX interprets exit(134) the same as
+ * if the process has really been interrupted by the abort signal and prints
+ * extra messages that confuse test script that is looking for matching output.
* This handles the abort signal instead letting it interrupt the OS because
* some systems may produce extra messages and/or produce core dump.
* This tries to eliminate those side effects.
@@ -104,7 +107,7 @@ parse(int ac, char **av)
void
abort_intercept (int UNUSED sig)
{
- HDexit(134);
+ HDexit(6);
}
int
diff --git a/test/testcheck_version.sh.in b/test/testcheck_version.sh.in
index e2fa44c..6e80654 100644
--- a/test/testcheck_version.sh.in
+++ b/test/testcheck_version.sh.in
@@ -162,7 +162,7 @@ TESTING() {
;;
*) # W/A: Warning, abort and exit non-0.
WarnMesg > $expect
- expect_code=134 # Signal Abort exit code (128+6)
+ expect_code=6 # Signal Abort exit code (128+6)
;;
esac
fi