summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2007-04-06 19:59:00 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2007-04-06 19:59:00 (GMT)
commit15de1c640768d43568a1f57c70e22bfa9b7b382c (patch)
tree45eb02b7b33d36486b093cefb459a252b30490b2 /test
parent2781e1e34d399ebcd12779ae1786ee48ceb5d8b0 (diff)
downloadhdf5-15de1c640768d43568a1f57c70e22bfa9b7b382c.zip
hdf5-15de1c640768d43568a1f57c70e22bfa9b7b382c.tar.gz
hdf5-15de1c640768d43568a1f57c70e22bfa9b7b382c.tar.bz2
[svn-r13604] Add big file test for SEC2 driver.
Diffstat (limited to 'test')
-rw-r--r--test/big.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/big.c b/test/big.c
index cc85642..33867b9 100644
--- a/test/big.c
+++ b/test/big.c
@@ -553,7 +553,25 @@ main (int ac, char **av)
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. */