diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-06-29 15:18:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-29 15:18:01 (GMT) |
commit | 9f430d15b004495d17826840ef1a4f281215c7f9 (patch) | |
tree | eddd0bd281a80adb336403582bd236c6a24b0dc6 /test/testframe.c | |
parent | a5f1fb01b9ef867cf94158cdb42ffb1d46bae916 (diff) | |
download | hdf5-9f430d15b004495d17826840ef1a4f281215c7f9.zip hdf5-9f430d15b004495d17826840ef1a4f281215c7f9.tar.gz hdf5-9f430d15b004495d17826840ef1a4f281215c7f9.tar.bz2 |
Rename HDexit() and related to exit(), etc. (#3202)
* HDatexit
* HDexit
* HD_exit
Diffstat (limited to 'test/testframe.c')
-rw-r--r-- | test/testframe.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/testframe.c b/test/testframe.c index 468a32e..f472b2e 100644 --- a/test/testframe.c +++ b/test/testframe.c @@ -73,11 +73,11 @@ AddTest(const char *TheName, void (*TheCall)(void), void (*Cleanup)(void), const /* Sanity checking */ if (HDstrlen(TheDescr) >= MAXTESTDESC) { printf("Test description ('%s') too long, increase MAXTESTDESC(%d).\n", TheDescr, MAXTESTDESC); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } if (HDstrlen(TheName) >= MAXTESTNAME) { printf("Test name too long, increase MAXTESTNAME(%d).\n", MAXTESTNAME); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } /* Check for increasing the Test array size */ @@ -89,7 +89,7 @@ AddTest(const char *TheName, void (*TheCall)(void), void (*Cleanup)(void), const if (NULL == (newTest = (TestStruct *)realloc(Test, newAlloc * sizeof(TestStruct)))) { printf("Out of memory for tests, Index = %u, TestAlloc = %u, newAlloc = %u\n", Index, TestAlloc, newAlloc); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } /* Update info */ @@ -230,7 +230,7 @@ TestParseCmdLine(int argc, char *argv[]) } else { TestUsage(); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } } else if (((HDstrcmp(*argv, "-exclude") == 0) || (HDstrcmp(*argv, "-x") == 0))) { @@ -241,7 +241,7 @@ TestParseCmdLine(int argc, char *argv[]) } else { TestUsage(); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } } else if (((HDstrcmp(*argv, "-begin") == 0) || (HDstrcmp(*argv, "-b") == 0))) { @@ -252,7 +252,7 @@ TestParseCmdLine(int argc, char *argv[]) } else { TestUsage(); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } } else if (((HDstrcmp(*argv, "-only") == 0) || (HDstrcmp(*argv, "-o") == 0))) { @@ -272,7 +272,7 @@ TestParseCmdLine(int argc, char *argv[]) } else { TestUsage(); - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } } else if ((HDstrcmp(*argv, "-summary") == 0) || (HDstrcmp(*argv, "-s") == 0)) @@ -281,7 +281,7 @@ TestParseCmdLine(int argc, char *argv[]) enable_error_stack = 1; else if ((HDstrcmp(*argv, "-help") == 0) || (HDstrcmp(*argv, "-h") == 0)) { TestUsage(); - HDexit(EXIT_SUCCESS); + exit(EXIT_SUCCESS); } else if ((HDstrcmp(*argv, "-cleanoff") == 0) || (HDstrcmp(*argv, "-c") == 0)) SetTestNoCleanup(); @@ -295,7 +295,7 @@ TestParseCmdLine(int argc, char *argv[]) if (NULL != TestPrivateParser) { ret_code = TestPrivateParser(argc + 1, argv - 1); if (ret_code != 0) - HDexit(EXIT_FAILURE); + exit(EXIT_FAILURE); } } |