summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-09-19 20:32:18 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-09-19 20:32:18 (GMT)
commit465f9be6e3f818d20c650976a14d7698063cad00 (patch)
tree944e7c7b9fe3f25e4d285a6daaf01362cac1fb15 /test/h5test.c
parentbd24d226d67b26dd43910df4e677751e6120f8f5 (diff)
downloadhdf5-465f9be6e3f818d20c650976a14d7698063cad00.zip
hdf5-465f9be6e3f818d20c650976a14d7698063cad00.tar.gz
hdf5-465f9be6e3f818d20c650976a14d7698063cad00.tar.bz2
[svn-r11441] Purpose:
Feature. Description: Added ALARM_ON, ALARM_OFF feature to terminate tests that run more than the default time limit. So far, the feature is applied in the standard test frame. Platforms tested: heping PP.
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/h5test.c b/test/h5test.c
index c582442..e2caea9 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -89,7 +89,7 @@ MPI_Info h5_io_info_g=MPI_INFO_NULL;/* MPI INFO object for IO */
*/
static const char *multi_letters = "msbrglo";
-static herr_t h5_errors(hid_t err_stack, void *client_data);
+static herr_t h5_errors(void *client_data);
/*-------------------------------------------------------------------------
@@ -109,11 +109,10 @@ static herr_t h5_errors(hid_t err_stack, void *client_data);
*-------------------------------------------------------------------------
*/
static herr_t
-h5_errors(hid_t err_stack, void UNUSED *client_data)
+h5_errors(void UNUSED *client_data)
{
H5_FAILED();
- H5Eprint_stack(err_stack, stdout);
-
+ H5Eprint(stdout);
return 0;
}
@@ -215,8 +214,7 @@ h5_reset(void)
HDfflush(stdout);
HDfflush(stderr);
H5close();
-
- H5Eset_auto_stack(H5E_DEFAULT, h5_errors, NULL);
+ H5Eset_auto(h5_errors, NULL);
/*
* Cause the library to emit some diagnostics early so they don't
@@ -625,10 +623,12 @@ h5_show_hostname(void)
}
else
printf(" hostname=%s\n", hostname);
+#else
+ printf(" gethostname not supported\n");
+#endif
#ifdef WIN32
WSACleanup();
#endif
-#endif
}