summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-04-01 03:23:49 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-04-01 03:23:49 (GMT)
commitb2bfb5ebc0a07a083e2368d7063f49ffb6fc486c (patch)
tree55df7cba923441316dc444473d1a9e9feaf6e489 /test
parent9d597efc993d4ad8eb0bf0144fae8ebfbded5822 (diff)
downloadhdf5-b2bfb5ebc0a07a083e2368d7063f49ffb6fc486c.zip
hdf5-b2bfb5ebc0a07a083e2368d7063f49ffb6fc486c.tar.gz
hdf5-b2bfb5ebc0a07a083e2368d7063f49ffb6fc486c.tar.bz2
[svn-r3744] Purpose:
Code cleanup Description: Code had ifdef's instead of using standard macro wrappers for getpid() call. Solution: Took out ifdef's and changed to use standard H5getpid() macro. Platforms tested: FreeBSD 4.3 (hawkwind)
Diffstat (limited to 'test')
-rw-r--r--test/h5test.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/h5test.c b/test/h5test.c
index ac834bf..c077c6a 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -215,11 +215,7 @@ 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
+ sprintf(filename, "/tmp/h5emit-%05d.h5", HDgetpid());
H5E_BEGIN_TRY {
hid_t file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT,
H5P_DEFAULT);