summaryrefslogtreecommitdiffstats
path: root/tools/misc/repart_test.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-06-08 20:50:58 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-06-08 20:50:58 (GMT)
commit24ccb5da13fd45c346aee164314c27b865425f92 (patch)
treed5ceb89b62939c035a5c97701f8b81c5f2e68109 /tools/misc/repart_test.c
parent40b72a28acb974ca25876b05ec8d53fae10e7012 (diff)
downloadhdf5-24ccb5da13fd45c346aee164314c27b865425f92.zip
hdf5-24ccb5da13fd45c346aee164314c27b865425f92.tar.gz
hdf5-24ccb5da13fd45c346aee164314c27b865425f92.tar.bz2
[svn-r10881] Purpose: Bug fix
Description: After recent fix of family driver bug(#213), some failure was discovered on sol and kelgia in daily test. Family files can't be opened by hdf5/tools/misc/repart_test.c. It turned out to be the destination size of "off_t" type wasn't passed in through H5Pset() correctly. Solution: In tools/misc/h5repart.c, copy the destination size to a variable of "hsize_t" type and pass in to H5Pset(). Platforms tested: sol and kelgia where the failure was discovered.
Diffstat (limited to 'tools/misc/repart_test.c')
-rw-r--r--tools/misc/repart_test.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/tools/misc/repart_test.c b/tools/misc/repart_test.c
index 042c858..7b81cf4 100644
--- a/tools/misc/repart_test.c
+++ b/tools/misc/repart_test.c
@@ -33,6 +33,9 @@ const char *FILENAME[] = {
NULL
};
+herr_t
+test_family_h5repart_opens(void);
+
/*-------------------------------------------------------------------------
* Function: test_family_h5repart_opens
@@ -49,19 +52,18 @@ const char *FILENAME[] = {
* Modifications:
*-------------------------------------------------------------------------
*/
-static herr_t
+herr_t
test_family_h5repart_opens(void)
{
hid_t file=(-1), fapl=(-1);
- char filename[1024];
-
+
/* open 1st file(single member file) with correct family size(20000 byte) */
if ((fapl=H5Pcreate(H5P_FILE_ACCESS))<0)
goto error;
-
+
if(H5Pset_fapl_family(fapl, (hsize_t)FAMILY_H5REPART_SIZE1, H5P_DEFAULT)<0)
goto error;
-
+
if((file=H5Fopen(FILENAME[0], H5F_ACC_RDWR, fapl))<0)
goto error;
@@ -108,7 +110,7 @@ int
main(void)
{
int nerrors=0;
-
+
nerrors += test_family_h5repart_opens()<0 ?1:0;
if (nerrors) goto error;