diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2010-01-22 21:17:48 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2010-01-22 21:17:48 (GMT) |
commit | 2c872f398b3824c416d42f2018c3d3ea0c40e80f (patch) | |
tree | 63b6a12e9761da108eed51954a5146fbd12942b6 /test/testframe.c | |
parent | 3c5dc1a808c1513632786cbf4a0a6d4b257c1953 (diff) | |
download | hdf5-2c872f398b3824c416d42f2018c3d3ea0c40e80f.zip hdf5-2c872f398b3824c416d42f2018c3d3ea0c40e80f.tar.gz hdf5-2c872f398b3824c416d42f2018c3d3ea0c40e80f.tar.bz2 |
[svn-r18154] ID 1753: added macro version of GetTestVerbosity.
GetTestVerbosity() is called many times during tests. Implemented a more
efficient macro version HDGetTestVerbosity.
Tested: Jam (serial and parallel). Did not run h5committest since this
is a trival change that is portable, I am 99% sure.
Diffstat (limited to 'test/testframe.c')
-rw-r--r-- | test/testframe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/testframe.c b/test/testframe.c index dd2f2f4..f0d94d8 100644 --- a/test/testframe.c +++ b/test/testframe.c @@ -45,7 +45,7 @@ typedef struct TestStruct { * Variables used by testing framework. */ static int num_errs = 0; /* Total number of errors during testing */ -static int Verbosity = VERBO_DEF; /* Default Verbosity is Low */ +int TestVerbosity = VERBO_DEF; /* Default Verbosity is Low */ static int Summary = 0; /* Show test summary. Default is no. */ static int CleanUp = 1; /* Do cleanup or not. Default is yes. */ static int TestExpress = -1; /* Do TestExpress or not. -1 means not set yet. */ @@ -361,7 +361,7 @@ void TestCleanup(void) */ int GetTestVerbosity(void) { - return(Verbosity); + return(TestVerbosity); } /* @@ -372,8 +372,8 @@ int SetTestVerbosity(int newval) { int oldval; - oldval = Verbosity; - Verbosity = newval; + oldval = TestVerbosity; + TestVerbosity = newval; return(oldval); } |