summaryrefslogtreecommitdiffstats
path: root/test/testframe.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-01-22 20:57:34 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-01-22 20:57:34 (GMT)
commit7f5fd94b565ca3a7f0bcdf0d11100c556048ff35 (patch)
tree550895f47fe521c80aa87e754e5da5ad30e67087 /test/testframe.c
parent618e7e7fbb5d7112ba38eb680d4b2a5b5c15adc1 (diff)
downloadhdf5-7f5fd94b565ca3a7f0bcdf0d11100c556048ff35.zip
hdf5-7f5fd94b565ca3a7f0bcdf0d11100c556048ff35.tar.gz
hdf5-7f5fd94b565ca3a7f0bcdf0d11100c556048ff35.tar.bz2
[svn-r8084] Purpose:
Improvement. Description: Verbosity level were specified by numbers which are not meaningful and prone to typos. Solution: Adapted the Verbosity predefined level symbols from HDF4 and changed all numberic verbosity to symbolic values. (Still need to convert some left over macros like MESSAGE.) Platforms tested: Eirene. No h5committest since this is trivial. Misc. update:
Diffstat (limited to 'test/testframe.c')
-rw-r--r--test/testframe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/testframe.c b/test/testframe.c
index ea3be51..416ae33 100644
--- a/test/testframe.c
+++ b/test/testframe.c
@@ -43,7 +43,7 @@ typedef struct TestStruct {
* Variables used by testing framework.
*/
static int num_errs = 0; /* Total number of errors during testing */
-static int Verbosity = 4; /* Default Verbosity is Low */
+static int Verbosity = VERBO_DEF; /* Default Verbosity is Low */
static TestStruct Test[MAXNUMOFTESTS];
static int Index = 0;
@@ -117,7 +117,7 @@ void TestUsage(void)
{
int i;
- print_func("Usage: ttsafe [-v[erbose] (l[ow]|m[edium]|h[igh]|0-10)] \n");
+ print_func("Usage: ttsafe [-v[erbose] (l[ow]|m[edium]|h[igh]|0-9)] \n");
print_func(" [-[e]x[clude] name+] \n");
print_func(" [-o[nly] name+] \n");
print_func(" [-b[egin] name] \n");
@@ -170,11 +170,11 @@ void TestParseCmdLine(int argc, char *argv[], int *Summary, int *CleanUp)
if ((argc > CLLoop + 1) && ((HDstrcmp(argv[CLLoop], "-verbose") == 0) ||
(HDstrcmp(argv[CLLoop], "-v") == 0))) {
if (argv[CLLoop + 1][0] == 'l')
- Verbosity = 4;
+ Verbosity = VERBO_LO;
else if (argv[CLLoop + 1][0] == 'm')
- Verbosity = 6;
+ Verbosity = VERBO_MED;
else if (argv[CLLoop + 1][0] == 'h')
- Verbosity = 10;
+ Verbosity = VERBO_HI;
else
Verbosity = atoi(argv[CLLoop + 1]);
} /* end if */