summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2001-01-04 23:52:03 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2001-01-04 23:52:03 (GMT)
commitea158f0f66495e5df9f60ed840527fc86938cc0c (patch)
treebeba733e496f35fbd9731e4a1644cbd1c4751875 /test/h5test.c
parent2291dc4b3f21ea3e18c25e0d84d6d19828180f6f (diff)
downloadhdf5-ea158f0f66495e5df9f60ed840527fc86938cc0c.zip
hdf5-ea158f0f66495e5df9f60ed840527fc86938cc0c.tar.gz
hdf5-ea158f0f66495e5df9f60ed840527fc86938cc0c.tar.bz2
[svn-r3242]
Purpose: bug fix for windows Description: in windows use _getpid instead of getpid Solution: Platforms tested: windows 2000
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/h5test.c b/test/h5test.c
index b3d91ca..f8de21a 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -11,6 +11,9 @@
#undef NDEBUG /*override -DNDEBUG */
#include <h5test.h>
+#ifdef WIN32
+#include <process.h>
+#endif
/*
* Define these environment variables or constants to influence functions in
@@ -212,7 +215,11 @@ h5_reset(void)
* Cause the library to emit some diagnostics early so they don't
* interfere with other formatted output.
*/
+#ifdef WIN32
+ sprintf(filename, "/tmp/h5emit-%05d.h5",_getpid());
+#else
sprintf(filename, "/tmp/h5emit-%05d.h5", getpid());
+#endif
H5E_BEGIN_TRY {
hid_t file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT,
H5P_DEFAULT);