diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2010-01-22 21:17:21 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2010-01-22 21:17:21 (GMT) |
commit | e8538794ef18febaa471a2a81639c9a9ef7bfba1 (patch) | |
tree | d35d016a52ae89dc42e6ae2b26cde681e0dafedb /test/testframe.c | |
parent | 1eac1391e2e1b217839d31f124a5404ef94221db (diff) | |
download | hdf5-e8538794ef18febaa471a2a81639c9a9ef7bfba1.zip hdf5-e8538794ef18febaa471a2a81639c9a9ef7bfba1.tar.gz hdf5-e8538794ef18febaa471a2a81639c9a9ef7bfba1.tar.bz2 |
[svn-r18153] 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 da48c05..17ca10f 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); } |