diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-04-01 03:25:53 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-04-01 03:25:53 (GMT) |
commit | e7e8b02c3a1a01aaf61560079504a6d04eb482d3 (patch) | |
tree | 4806e78ccd7bfd48d3c853533257eff24c54065c /test/th5s.c | |
parent | b2bfb5ebc0a07a083e2368d7063f49ffb6fc486c (diff) | |
download | hdf5-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/th5s.c')
-rw-r--r-- | test/th5s.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/th5s.c b/test/th5s.c index a6052e2..b29de85 100644 --- a/test/th5s.c +++ b/test/th5s.c @@ -28,7 +28,7 @@ #include <H5Pprivate.h> #define TESTFILE "th5s.h5" -#define FILE "th5s1.h5" +#define DATAFILE "th5s1.h5" /* 3-D dataset with fixed dimensions */ #define SPACE1_NAME "Space1" @@ -213,7 +213,7 @@ test_h5s_scalar_write(void) MESSAGE(5, ("Testing Scalar Dataspace Manipulation during Writing\n")); /* Create file */ - fid1 = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); + fid1 = H5Fcreate(DATAFILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); CHECK(fid1, FAIL, "H5Fcreate"); /* Create scalar dataspace */ @@ -276,7 +276,7 @@ test_h5s_scalar_read(void) MESSAGE(5, ("Testing Scalar Dataspace Manipulation during Reading\n")); /* Create file */ - fid1 = H5Fopen(FILE, H5F_ACC_RDWR, H5P_DEFAULT); + fid1 = H5Fopen(DATAFILE, H5F_ACC_RDWR, H5P_DEFAULT); CHECK(fid1, FAIL, "H5Fopen"); /* Create a dataset */ @@ -336,7 +336,7 @@ test_h5s_compound_scalar_write(void) MESSAGE(5, ("Testing Scalar Dataspace Manipulation for Writing Compound Datatypes\n")); /* Create file */ - fid1 = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); + fid1 = H5Fcreate(DATAFILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); CHECK(fid1, FAIL, "H5Fcreate"); /* Create the compound datatype. */ @@ -417,7 +417,7 @@ test_h5s_compound_scalar_read(void) MESSAGE(5, ("Testing Scalar Dataspace Manipulation for Reading Compound Datatypes\n")); /* Create file */ - fid1 = H5Fopen(FILE, H5F_ACC_RDWR, H5P_DEFAULT); + fid1 = H5Fopen(DATAFILE, H5F_ACC_RDWR, H5P_DEFAULT); CHECK(fid1, FAIL, "H5Fopen"); /* Create a dataset */ @@ -500,6 +500,6 @@ test_h5s(void) void cleanup_h5s(void) { - remove(FILE); + remove(DATAFILE); } |