summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2003-09-24 19:26:50 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2003-09-24 19:26:50 (GMT)
commit7e79a8d71e6a579710e0fc2c677dfc32336d058f (patch)
treed9b4f93046b8c2930fd35b3ec75953eccf1c1a47 /test/h5test.c
parent52f3545bde417a7eaeb996bfc97b58ab32075c73 (diff)
downloadhdf5-7e79a8d71e6a579710e0fc2c677dfc32336d058f.zip
hdf5-7e79a8d71e6a579710e0fc2c677dfc32336d058f.tar.gz
hdf5-7e79a8d71e6a579710e0fc2c677dfc32336d058f.tar.bz2
[svn-r7507] *** empty log message ***
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/h5test.c b/test/h5test.c
index f583e4e..a3d4abf 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -112,7 +112,12 @@ static herr_t
h5_errors(hid_t err_stack, void UNUSED *client_data)
{
H5_FAILED();
+#ifdef H5_WANT_H5_V1_6_COMPAT
+ H5Eprint (stdout);
+#else
H5Eprint (err_stack, stdout);
+#endif /* H5_WANT_H5_V1_6_COMPAT */
+
return 0;
}
@@ -214,7 +219,11 @@ h5_reset(void)
HDfflush(stdout);
HDfflush(stderr);
H5close();
+#ifdef H5_WANT_H5_V1_6_COMPAT
+ H5Eset_auto (h5_errors, NULL);
+#else
H5Eset_auto (H5E_DEFAULT, h5_errors, NULL);
+#endif /* H5_WANT_H5_V1_6_COMPAT */
/*
* Cause the library to emit some diagnostics early so they don't