summaryrefslogtreecommitdiffstats
path: root/testpar/testphdf5.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-08-20 05:03:28 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-08-20 05:03:28 (GMT)
commit1926a6538e52bb626be4411d52fd12eb4496a426 (patch)
treefe7be3d50066ce3ebd0622127fcb362c8a368eed /testpar/testphdf5.c
parent824ba5e2fde476934df42284271c358b14e1a6af (diff)
downloadhdf5-1926a6538e52bb626be4411d52fd12eb4496a426.zip
hdf5-1926a6538e52bb626be4411d52fd12eb4496a426.tar.gz
hdf5-1926a6538e52bb626be4411d52fd12eb4496a426.tar.bz2
[svn-r9130] Purpose:
bug fix. Description: The test routines only print error messages but not all of them return number of errors detected back to the main routine which always exit with a 0 status. Thus make or shell commands could not detect there were errors. Solution: Changed the test routines to return appropriate number of errors to main routine which in turn exit with the appropriate exit code if errors found. Platforms tested: Tested in Sol and eirene (pp). Misc. update:
Diffstat (limited to 'testpar/testphdf5.c')
-rw-r--r--testpar/testphdf5.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c
index 3578843..d377b47 100644
--- a/testpar/testphdf5.c
+++ b/testpar/testphdf5.c
@@ -547,6 +547,8 @@ finish:
/* MPI_Finalize must be called AFTER H5close which may use MPI calls */
MPI_Finalize();
- return(nerrors);
+
+ /* cannot just return (nerrors) because exit code is limited to 1byte */
+ return(nerrors!=0);
}