summaryrefslogtreecommitdiffstats
path: root/test/set_extent.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2009-02-04 19:37:58 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2009-02-04 19:37:58 (GMT)
commit89f033b6616484f2d0f48a10458f8fa2652fdde4 (patch)
treeeae126067844c37d0255b7db5b702aefc86d7962 /test/set_extent.c
parent50fa98277db2e2dc4580be0a9b549106ee313535 (diff)
downloadhdf5-89f033b6616484f2d0f48a10458f8fa2652fdde4.zip
hdf5-89f033b6616484f2d0f48a10458f8fa2652fdde4.tar.gz
hdf5-89f033b6616484f2d0f48a10458f8fa2652fdde4.tar.bz2
[svn-r16423] bug fix: a open call was not made the expected FAPL
tested: windows, linux (split, sec2)
Diffstat (limited to 'test/set_extent.c')
-rw-r--r--test/set_extent.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/test/set_extent.c b/test/set_extent.c
index c9522d3..0477b8d 100644
--- a/test/set_extent.c
+++ b/test/set_extent.c
@@ -122,7 +122,7 @@ int main( void )
/* Close 2nd FAPL */
if(H5Pclose(fapl2) < 0) TEST_ERROR
- h5_cleanup(FILENAME, fapl);
+ /*h5_cleanup(FILENAME, fapl);*/
HDremove(EXT_FILE_NAME1);
HDremove(EXT_FILE_NAME2);
@@ -605,7 +605,7 @@ static int test_rank1( hbool_t do_compress,
goto error;
}
- if ((fid = H5Fopen( filename, H5F_ACC_RDWR, H5P_DEFAULT ))<0)
+ if ((fid = H5Fopen( filename, H5F_ACC_RDWR, fapl ))<0)
{
goto error;
}
@@ -928,11 +928,7 @@ static int test_rank2( hbool_t do_compress,
goto error;
}
- /* close property list */
- if(H5Pclose(fcpl) < 0)
- {
- goto error;
- }
+
/* create the data space with unlimited dimensions. */
if ((sid = H5Screate_simple(RANK2, dims_o, maxdims)) < 0)
@@ -1181,7 +1177,7 @@ static int test_rank2( hbool_t do_compress,
goto error;
}
- if ((fid = H5Fopen( filename, H5F_ACC_RDWR, H5P_DEFAULT ))<0)
+ if ((fid = H5Fopen( filename, H5F_ACC_RDWR, fapl ))<0)
{
goto error;
}
@@ -1423,6 +1419,12 @@ static int test_rank2( hbool_t do_compress,
goto error;
}
+ /* close file creation property list */
+ if(H5Pclose(fcpl) < 0)
+ {
+ goto error;
+ }
+
if (H5Fclose( fid ) < 0)
{
goto error;
@@ -1760,7 +1762,7 @@ static int test_rank3( hbool_t do_compress,
goto error;
}
- if ((fid = H5Fopen( filename, H5F_ACC_RDWR, H5P_DEFAULT ))<0)
+ if ((fid = H5Fopen( filename, H5F_ACC_RDWR, fapl ))<0)
{
goto error;
}