diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2004-08-19 06:32:47 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2004-08-19 06:32:47 (GMT) |
commit | 3c596787759d86e8f672f51e8675e93dc3f6d6dc (patch) | |
tree | 82869255fc6b1a25161147e0194cde2c71746b06 /test/ttsafe.c | |
parent | 3fe6ec11413f24d5dfcab5ac050c9e7312c3fd9d (diff) | |
download | hdf5-3c596787759d86e8f672f51e8675e93dc3f6d6dc.zip hdf5-3c596787759d86e8f672f51e8675e93dc3f6d6dc.tar.gz hdf5-3c596787759d86e8f672f51e8675e93dc3f6d6dc.tar.bz2 |
[svn-r9115] Purpose:
feature
Description:
Another revamp of the test interface.
TestInit: is used to register Test Program name, test program specific
Usage and option parsing routines.
TestUsage: will invoke extra usage routine if provided.
TestParseCmdLine: will invoke extra option parsing routine if provided.
GetTestSummary() and GetTestCleanup() replaces the previous Summary and
CleanUp arguments of TestParseCmdLine.
test/testhdf5, test/ttsafe.c, testpar/t_mpi.c, testpar/testphdf5.c:
All have been updated to use the new Test Routines.
testpar/t_mpi.c:
Also a fix of a compiler optimization bug when pgcc in Linux is
used to compile it. Changed buf[] and expected to unsigned char
type to avoid a bug that failed to do sign-extension.
Platforms tested:
"h5committested"
Also tested thread-safe option in eirene.
Diffstat (limited to 'test/ttsafe.c')
-rw-r--r-- | test/ttsafe.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/ttsafe.c b/test/ttsafe.c index 0a4bb34..0e24bf3 100644 --- a/test/ttsafe.c +++ b/test/ttsafe.c @@ -85,10 +85,8 @@ char *gen_name(int value) int main(int argc, char *argv[]) { - int Summary = 0, CleanUp = 1; - /* Initialize testing framework */ - TestInit(); + TestInit(argv[0], NULL, NULL); /* Tests are generally arranged from least to most complexity... */ AddTest("dcreate", tts_dcreate, cleanup_dcreate, "multi-dataset creation", NULL); @@ -100,17 +98,17 @@ int main(int argc, char *argv[]) TestInfo(argv[0]); /* Parse command line arguments */ - TestParseCmdLine(argc,argv,&Summary,&CleanUp,NULL); + TestParseCmdLine(argc,argv); /* Perform requested testing */ PerformTests(); /* Display test summary, if requested */ - if (Summary) + if (GetTestSummary()) TestSummary(); /* Clean up test files, if allowed */ - if (CleanUp && !getenv("HDF5_NOCLEANUP")) + if (GetTestCleanup() && !getenv("HDF5_NOCLEANUP")) TestCleanup(); return GetTestNumErrs(); |