summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2007-04-06 20:00:04 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2007-04-06 20:00:04 (GMT)
commit019ee90da5afe065a2ae7139d35eeb3d0550dedf (patch)
tree9d55e58ed3b5087272533ee5f2855f3cbe60dc7c /test
parent400f6742846ef5e5a6b045d8d1504c3e9f4c449b (diff)
downloadhdf5-019ee90da5afe065a2ae7139d35eeb3d0550dedf.zip
hdf5-019ee90da5afe065a2ae7139d35eeb3d0550dedf.tar.gz
hdf5-019ee90da5afe065a2ae7139d35eeb3d0550dedf.tar.bz2
[svn-r13605] Add big file test for SEC2.
Diffstat (limited to 'test')
-rw-r--r--test/big.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/big.c b/test/big.c
index 80fc073..026e917 100644
--- a/test/big.c
+++ b/test/big.c
@@ -555,7 +555,26 @@ main (int ac, char **av)
if (h5_cleanup(FILENAME, fapl)) remove(DNAME);
puts("Test passed with the Family Driver.");
+
+ /* Test big file with the SEC2 driver */
+ puts("\nTesting big file with the SEC2 Driver ");
+
+ fapl = h5_fileaccess();
+ if(H5Pset_fapl_sec2(fapl)<0)
+
+ HDmemset(filename, 0, sizeof(filename));
+ h5_fixname(FILENAME[2], fapl, filename, sizeof filename);
+
+ if (writer(filename, fapl, WRT_N)) goto error;
+ if (reader(filename, fapl)) goto error;
+
+ puts("Test passed with the SEC2 Driver.");
+
+
#ifdef H5_HAVE_FSEEKO
+ /* Clean up the test file */
+ if (h5_cleanup(FILENAME, fapl)) remove(DNAME);
+
/* Test big file with the STDIO driver only if fseeko is supported,
* because the OFFSET parameter of fseek has the type LONG, not big
* enough to support big files. */