summaryrefslogtreecommitdiffstats
path: root/test/dsets.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-10-14 19:46:13 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-10-14 19:46:13 (GMT)
commitcc1502af9c304cd5f51eedeedf1e190f771cd556 (patch)
treeb7d82900161eff17eb707058c3f2c5a28d5f6039 /test/dsets.c
parenta47135b29e152e689d57cb890409f72037061344 (diff)
downloadhdf5-cc1502af9c304cd5f51eedeedf1e190f771cd556.zip
hdf5-cc1502af9c304cd5f51eedeedf1e190f771cd556.tar.gz
hdf5-cc1502af9c304cd5f51eedeedf1e190f771cd556.tar.bz2
[svn-r5990] Purpose:
Code cleanup Description: Clean up some compile warnings and have these tests create their data files with the correct file drivers and directories, etc. Platforms tested: FreeBSD 4.6 (sleipnir) w and w/o parallel Linux 2.2.x (eirene) w/FORTRAN & C++ Solaris 2.7 (arabica) w/FORTRAN IRIX64 6.5 (modi4) w/FORTRAN & parallel
Diffstat (limited to 'test/dsets.c')
-rw-r--r--test/dsets.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/dsets.c b/test/dsets.c
index 7442c50..11bad7f 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -285,12 +285,13 @@ test_simple_io(hid_t file)
*-------------------------------------------------------------------------
*/
static herr_t
-test_compact_io(void)
+test_compact_io(hid_t fapl)
{
hid_t file, dataset, space, plist;
hsize_t dims[2];
herr_t status;
int wbuf[16][8], rbuf[16][8];
+ char filename[1024];
int i, j, n;
TESTING("compact dataset I/O");
@@ -310,7 +311,8 @@ test_compact_io(void)
assert(space>=0);
/* Create a file */
- if((file=H5Fcreate(FILENAME[1], H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT))<0)
+ h5_fixname(FILENAME[1], fapl, filename, sizeof filename);
+ if((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl))<0)
goto error;
/* Create property list for compact dataset creation */
@@ -337,7 +339,7 @@ test_compact_io(void)
/*
* Open the file and check data
*/
- if((file=H5Fopen(FILENAME[1], H5F_ACC_RDONLY, H5P_DEFAULT))<0)
+ if((file=H5Fopen(filename, H5F_ACC_RDONLY, fapl))<0)
goto error;
if((dataset = H5Dopen(file, DSET_COMPACT_IO_NAME))<0)
goto error;
@@ -986,7 +988,6 @@ main(void)
#endif
h5_fixname(FILENAME[0], fapl, filename, sizeof filename);
- h5_fixname(FILENAME[1], fapl, filename, sizeof filename);
if ((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl))<0) {
goto error;
}
@@ -999,7 +1000,7 @@ main(void)
nerrors += test_create(file)<0 ?1:0;
nerrors += test_simple_io(file)<0 ?1:0;
- nerrors += test_compact_io()<0 ?1:0;
+ nerrors += test_compact_io(fapl)<0 ?1:0;
nerrors += test_tconv(file)<0 ?1:0;
nerrors += test_compression(file)<0 ?1:0;
nerrors += test_multiopen (file)<0 ?1:0;