summaryrefslogtreecommitdiffstats
path: root/testpar/testphdf5.c
diff options
context:
space:
mode:
authorJohn Mainzer <mainzer@hdfgroup.org>2004-09-18 21:38:44 (GMT)
committerJohn Mainzer <mainzer@hdfgroup.org>2004-09-18 21:38:44 (GMT)
commita4e1edbdba674822949dc8695333c0d23018197c (patch)
tree670a72ce9a05d2cde57db016e6b309cde1b0c76a /testpar/testphdf5.c
parent30f2ba6e07bb4aeb960e10533d2e2bbb6fd24ec7 (diff)
downloadhdf5-a4e1edbdba674822949dc8695333c0d23018197c.zip
hdf5-a4e1edbdba674822949dc8695333c0d23018197c.tar.gz
hdf5-a4e1edbdba674822949dc8695333c0d23018197c.tar.bz2
[svn-r9274] Purpose:
Add test to verify the fix of the parallel I/O mode confusion bug. Description: While the parallel I/O mode confusion bug is fixed, an automated regression test for this bug would be useful. Solution: Added a modified version of the original bug demonstration program to testphdf5. Platforms tested: copper h5committested eirene (parallel) Misc. update:
Diffstat (limited to 'testpar/testphdf5.c')
-rw-r--r--testpar/testphdf5.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c
index 793a9b8..815c21c 100644
--- a/testpar/testphdf5.c
+++ b/testpar/testphdf5.c
@@ -39,7 +39,7 @@ void *old_client_data; /* previous error handler arg.*/
/* other option flags */
/* FILENAME and filenames must have the same number of names */
-const char *FILENAME[12]={
+const char *FILENAME[13]={
"ParaEg1",
"ParaEg2",
"ParaEg3",
@@ -51,8 +51,9 @@ const char *FILENAME[12]={
"ParaFill",
"ParaCC",
"ParaNull",
+ "ModeConfusion",
NULL};
-char filenames[12][PATH_MAX];
+char filenames[13][PATH_MAX];
hid_t fapl; /* file access property list */
#ifdef USE_PAUSE
@@ -335,6 +336,7 @@ int main(int argc, char **argv)
int mpi_size, mpi_rank; /* mpi variables */
H5Ptest_param_t ndsets_params, ngroups_params;
H5Ptest_param_t collngroups_params;
+ H5Ptest_param_t io_mode_confusion_params;
/* Un-buffer the stdout and stderr */
setbuf(stderr, NULL);
@@ -433,6 +435,14 @@ int main(int argc, char **argv)
AddTest("null", null_dataset, NULL,
"null dataset test", filenames[10]);
+ io_mode_confusion_params.name = filenames[11];
+ io_mode_confusion_params.count = 0; /* value not used */
+
+ AddTest("I/Omodeconf", io_mode_confusion, NULL,
+ "I/O mode confusion test -- hangs quickly on failure",
+ &io_mode_confusion_params);
+
+
/* Display testing information */
TestInfo(argv[0]);