summaryrefslogtreecommitdiffstats
path: root/test/testframe.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-07-28 03:55:51 (GMT)
committerGitHub <noreply@github.com>2023-07-28 03:55:51 (GMT)
commitfe4b1c572841fff38a6b9422ea63d345ccfa96bf (patch)
tree5e9567294dff5625010f4fbfc710bc1c547ea3a0 /test/testframe.c
parente6210c80cfe823a7ee6e938daf9e87d302ca9a8e (diff)
downloadhdf5-fe4b1c572841fff38a6b9422ea63d345ccfa96bf.zip
hdf5-fe4b1c572841fff38a6b9422ea63d345ccfa96bf.tar.gz
hdf5-fe4b1c572841fff38a6b9422ea63d345ccfa96bf.tar.bz2
Sync testhdf5 files w/ develop (#3300)
Diffstat (limited to 'test/testframe.c')
-rw-r--r--test/testframe.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/testframe.c b/test/testframe.c
index 5f8fbd4..ed60520 100644
--- a/test/testframe.c
+++ b/test/testframe.c
@@ -71,11 +71,11 @@ AddTest(const char *TheName, void (*TheCall)(void), void (*Cleanup)(void), const
if (HDstrlen(TheDescr) >= MAXTESTDESC) {
printf("Test description ('%s') too long, increase MAXTESTDESC(%d).\n", TheDescr, MAXTESTDESC);
exit(EXIT_FAILURE);
- } /* end if */
+ }
if (HDstrlen(TheName) >= MAXTESTNAME) {
printf("Test name too long, increase MAXTESTNAME(%d).\n", MAXTESTNAME);
exit(EXIT_FAILURE);
- } /* end if */
+ }
/* Check for increasing the Test array size */
if (Index >= TestAlloc) {
@@ -87,12 +87,12 @@ AddTest(const char *TheName, void (*TheCall)(void), void (*Cleanup)(void), const
printf("Out of memory for tests, Index = %u, TestAlloc = %u, newAlloc = %u\n", Index, TestAlloc,
newAlloc);
exit(EXIT_FAILURE);
- } /* end if */
+ }
/* Update info */
Test = newTest;
TestAlloc = newAlloc;
- } /* end if */
+ }
/* Set up test function */
HDstrcpy(Test[Index].Description, TheDescr);
@@ -212,7 +212,7 @@ TestParseCmdLine(int argc, char *argv[])
hbool_t skipped_all = FALSE;
int ret_code;
- while (argv++, --argc > 0) {
+ while ((void)argv++, --argc > 0) {
if ((HDstrcmp(*argv, "-verbose") == 0) || (HDstrcmp(*argv, "-v") == 0)) {
if (argc > 0) {
--argc;
@@ -316,7 +316,7 @@ PerformTests(void)
}
Test_parameters = NULL; /* clear it. */
- MESSAGE(2, ("\n\n"))
+ MESSAGE(2, ("\n\n"));
if (num_errs)
print_func("!!! %d Error(s) were detected !!!\n\n", (int)num_errs);
@@ -634,7 +634,7 @@ TestAlarmOn(void)
/* Get the alarm value from the environment variable, if set */
if (env_val != NULL)
- alarm_sec = (unsigned)HDstrtoul(env_val, (char **)NULL, 10);
+ alarm_sec = (unsigned)strtoul(env_val, (char **)NULL, 10);
/* Set the number of seconds before alarm goes off */
alarm((unsigned)alarm_sec);