summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-01-05 22:30:53 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-01-05 22:30:53 (GMT)
commit1b4b706db78cd565da6671fdcfd375a94a6d6702 (patch)
treeb6b86e56aec5fa0bf72c309a7c63d6391aa4deba
parentdc458e5f6f7f4ea69644653aa3f348d2f6eb9d53 (diff)
downloadhdf5-1b4b706db78cd565da6671fdcfd375a94a6d6702.zip
hdf5-1b4b706db78cd565da6671fdcfd375a94a6d6702.tar.gz
hdf5-1b4b706db78cd565da6671fdcfd375a94a6d6702.tar.bz2
[svn-r8018] Purpose:
Fixed a dumb mistake. Description: Other tests barked at the changes. Solution: Move the declaration of Index and Test[] into h5test.c. Platforms tested: Tested in eirene. Misc. update:
-rw-r--r--test/h5test.c8
-rw-r--r--test/testhdf5.c3
-rw-r--r--test/ttsafe.c2
3 files changed, 8 insertions, 5 deletions
diff --git a/test/h5test.c b/test/h5test.c
index 87a8a0b..0d8f0c2 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -89,6 +89,14 @@ MPI_Info h5_io_info_g=MPI_INFO_NULL;/* MPI INFO object for IO */
*/
static const char *multi_letters = "msbrglo";
+/*
+ * Global variables used by InitTest().
+ * The code should be revised so that these do not need to be
+ * global.
+ */
+struct TestStruct Test[MAXNUMOFTESTS];
+int Index = 0;
+
#ifdef H5_WANT_H5_V1_6_COMPAT
static herr_t h5_errors(void *client_data);
#else /* H5_WANT_H5_V1_6_COMPAT */
diff --git a/test/testhdf5.c b/test/testhdf5.c
index 58eacbe..c6b74ee 100644
--- a/test/testhdf5.c
+++ b/test/testhdf5.c
@@ -51,9 +51,6 @@ int Verbosity;
/* ANY new test needs to have a prototype in tproto.h */
#include "testhdf5.h"
-struct TestStruct Test[MAXNUMOFTESTS];
-int Index = 0;
-
static void usage(void);
static void
diff --git a/test/ttsafe.c b/test/ttsafe.c
index 276b757..d7c941a 100644
--- a/test/ttsafe.c
+++ b/test/ttsafe.c
@@ -63,8 +63,6 @@ int num_errs = 0;
int Verbosity;
/* ANY new test needs to have a prototype in tproto.h */
-TestStruct Test[MAXNUMOFTESTS];
-int Index = 0;
static void usage(void);