From 1b4b706db78cd565da6671fdcfd375a94a6d6702 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Mon, 5 Jan 2004 17:30:53 -0500 Subject: [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: --- test/h5test.c | 8 ++++++++ test/testhdf5.c | 3 --- test/ttsafe.c | 2 -- 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); -- cgit v0.12