diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2007-04-04 19:59:00 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2007-04-04 19:59:00 (GMT) |
commit | 3431f74c438b25e7aeba9062ed1e948899457b46 (patch) | |
tree | ed7a1aa1282e74a0a4646762ce82f29b1749dbec /test/vfd.c | |
parent | ea63d5fb19e8b260178e6f76e8ed0504ded148a3 (diff) | |
download | hdf5-3431f74c438b25e7aeba9062ed1e948899457b46.zip hdf5-3431f74c438b25e7aeba9062ed1e948899457b46.tar.gz hdf5-3431f74c438b25e7aeba9062ed1e948899457b46.tar.bz2 |
[svn-r13588] A support of files bigger than 2GB for STDIO driver. Configure will
check if fseeko is available. Using it instead of fseek can support
big files because the offset is of type off_t not long int. Also
added the test for STDIO in big.c.
Diffstat (limited to 'test/vfd.c')
-rw-r--r-- | test/vfd.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -22,7 +22,7 @@ #include "h5test.h" -#define KB 1024 +#define KB 1024U #define FAMILY_NUMBER 4 #define FAMILY_SIZE (1*KB) #define FAMILY_SIZE2 (5*KB) @@ -379,7 +379,7 @@ test_core(void) /* Set property list and file name for CORE driver */ fapl = h5_fileaccess(); - if(H5Pset_fapl_core(fapl, CORE_INCREMENT, TRUE)<0) + if(H5Pset_fapl_core(fapl, (size_t)CORE_INCREMENT, TRUE)<0) TEST_ERROR; h5_fixname(FILENAME[1], fapl, filename, sizeof filename); @@ -418,7 +418,7 @@ test_core(void) /* Open the file with backing store off for read and write. * Changes won't be saved in file. */ - if(H5Pset_fapl_core(fapl, CORE_INCREMENT, FALSE)<0) + if(H5Pset_fapl_core(fapl, (size_t)CORE_INCREMENT, FALSE)<0) TEST_ERROR; if((file=H5Fopen(filename, H5F_ACC_RDWR, fapl))<0) @@ -480,7 +480,7 @@ test_core(void) /* Open the file with backing store on for read and write. * Changes will be saved in file. */ - if(H5Pset_fapl_core(fapl, CORE_INCREMENT, TRUE)<0) + if(H5Pset_fapl_core(fapl, (size_t)CORE_INCREMENT, TRUE)<0) TEST_ERROR; if((file=H5Fopen(filename, H5F_ACC_RDWR, fapl))<0) @@ -660,7 +660,7 @@ test_family(void) hid_t access_fapl = -1; char filename[1024]; char dname[]="dataset"; - int i, j; + unsigned int i, j; int *fhandle=NULL, *fhandle2=NULL; int buf[FAMILY_NUMBER][FAMILY_SIZE]; hsize_t dims[2]={FAMILY_NUMBER, FAMILY_SIZE}; @@ -719,6 +719,7 @@ test_family(void) for(i=0; i<FAMILY_NUMBER; i++) for(j=0; j<FAMILY_SIZE; j++) buf[i][j] = i*10000+j; + if(H5Dwrite(dset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, buf)<0) TEST_ERROR; |