summaryrefslogtreecommitdiffstats
path: root/test/ttime.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-04-01 03:25:53 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-04-01 03:25:53 (GMT)
commite7e8b02c3a1a01aaf61560079504a6d04eb482d3 (patch)
tree4806e78ccd7bfd48d3c853533257eff24c54065c /test/ttime.c
parentb2bfb5ebc0a07a083e2368d7063f49ffb6fc486c (diff)
downloadhdf5-e7e8b02c3a1a01aaf61560079504a6d04eb482d3.zip
hdf5-e7e8b02c3a1a01aaf61560079504a6d04eb482d3.tar.gz
hdf5-e7e8b02c3a1a01aaf61560079504a6d04eb482d3.tar.bz2
[svn-r3745] Purpose:
Code Tweaks Description: "FILE" macro for file names was getting confused with Standard C __FILE__ macro on certain platforms. Solution: Changed "FILE" macro usage to "DATAFILE" Platforms tested: FreeBSD 4.3 (hawkwind)
Diffstat (limited to 'test/ttime.c')
-rw-r--r--test/ttime.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ttime.c b/test/ttime.c
index 8ce2cc9..94b82db 100644
--- a/test/ttime.c
+++ b/test/ttime.c
@@ -24,7 +24,7 @@
#include <hdf5.h>
-#define FILE "ttime.h5"
+#define DATAFILE "ttime.h5"
/****************************************************************
**
@@ -41,7 +41,7 @@ test_time(void)
MESSAGE(5, ("Testing Time Datatypes\n"));
/* Create a new file using default properties. */
- file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
+ file_id = H5Fcreate(DATAFILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
CHECK(file_id, FAIL, "H5Fcreate");
tid = H5Tcopy (H5T_UNIX_D32LE);
@@ -76,7 +76,7 @@ test_time(void)
status = H5Fclose(file_id);
CHECK(status, FAIL, "H5Fclose");
- file_id = H5Fopen(FILE, H5F_ACC_RDWR, H5P_DEFAULT);
+ file_id = H5Fopen(DATAFILE, H5F_ACC_RDWR, H5P_DEFAULT);
CHECK(file_id, FAIL, "H5Fopen");
tid = H5Topen(file_id, "Committed D32LE type");
@@ -146,6 +146,6 @@ test_time(void)
void
cleanup_time(void)
{
- remove(FILE);
+ remove(DATAFILE);
}