summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-03-02 17:06:39 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-03-02 17:06:39 (GMT)
commitbf815e12e701011f87f7140731f80c95d2fd9dde (patch)
tree2d0591a718b22f90de291bc7a8af661255688236
parente044ae5ee2aad9bd32c52bd13eee66ffa73356e6 (diff)
downloadhdf5-bf815e12e701011f87f7140731f80c95d2fd9dde.zip
hdf5-bf815e12e701011f87f7140731f80c95d2fd9dde.tar.gz
hdf5-bf815e12e701011f87f7140731f80c95d2fd9dde.tar.bz2
[svn-r10122] Purpose:
typo fix and small improvement. Description: t_coll_chunk.c: ccdataset_vrfy() was using a wrong routine name to identify itself. testphdf5.c: Add a definition of NFILENAME to be the common dimension size of FILENAME[] and filenames[][] since they must have the same first dimension size. Platforms tested: h5committested.
-rw-r--r--testpar/t_coll_chunk.c2
-rw-r--r--testpar/testphdf5.c7
2 files changed, 5 insertions, 4 deletions
diff --git a/testpar/t_coll_chunk.c b/testpar/t_coll_chunk.c
index 8b9554e..17bfc10 100644
--- a/testpar/t_coll_chunk.c
+++ b/testpar/t_coll_chunk.c
@@ -490,6 +490,6 @@ ccdataset_vrfy(hsize_t start[], hsize_t count[], hsize_t stride[], hsize_t block
if (vrfyerrs > MAX_ERR_REPORT && !VERBOSE_MED)
printf("[more errors ...]\n");
if (vrfyerrs)
- printf("%d errors found in dataset_vrfy\n", vrfyerrs);
+ printf("%d errors found in ccdataset_vrfy\n", vrfyerrs);
return(vrfyerrs);
}
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c
index f753919..d13bfe7 100644
--- a/testpar/testphdf5.c
+++ b/testpar/testphdf5.c
@@ -41,13 +41,14 @@ void *old_client_data; /* previous error handler arg.*/
/* FILENAME and filenames must have the same number of names.
* Use PARATESTFILE in general and use a separated filename only if the file
* created in one test is accessed by a different test.
- * FILENAME[0] is reserved as the file name for PARATESTFILE.
+ * filenames[0] is reserved as the file name for PARATESTFILE.
*/
+#define NFILENAME 2
#define PARATESTFILE filenames[0]
-const char *FILENAME[2]={
+const char *FILENAME[NFILENAME]={
"ParaTest",
NULL};
-char filenames[2][PATH_MAX];
+char filenames[NFILENAME][PATH_MAX];
hid_t fapl; /* file access property list */
#ifdef USE_PAUSE