summaryrefslogtreecommitdiffstats
path: root/tools/test
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-29 15:18:01 (GMT)
committerGitHub <noreply@github.com>2023-06-29 15:18:01 (GMT)
commit9f430d15b004495d17826840ef1a4f281215c7f9 (patch)
treeeddd0bd281a80adb336403582bd236c6a24b0dc6 /tools/test
parenta5f1fb01b9ef867cf94158cdb42ffb1d46bae916 (diff)
downloadhdf5-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 'tools/test')
-rw-r--r--tools/test/h5format_convert/h5fc_chk_idx.c16
-rw-r--r--tools/test/h5jam/getub.c4
-rw-r--r--tools/test/h5jam/tellub.c2
-rw-r--r--tools/test/misc/clear_open_chk.c8
-rw-r--r--tools/test/misc/h5clear_gentest.c4
-rw-r--r--tools/test/misc/h5repart_gentest.c24
-rw-r--r--tools/test/misc/repart_test.c4
-rw-r--r--tools/test/perform/zip_perf.c2
8 files changed, 32 insertions, 32 deletions
diff --git a/tools/test/h5format_convert/h5fc_chk_idx.c b/tools/test/h5format_convert/h5fc_chk_idx.c
index ffa3327..49fbbab 100644
--- a/tools/test/h5format_convert/h5fc_chk_idx.c
+++ b/tools/test/h5format_convert/h5fc_chk_idx.c
@@ -51,7 +51,7 @@ main(int argc, char *argv[])
/* h5fc_chk_idx fname dname */
if (argc != 3) {
usage();
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
} /* end if */
/* Duplicate the file name & dataset name */
@@ -61,39 +61,39 @@ main(int argc, char *argv[])
/* Try opening the file */
if ((fid = h5tools_fopen(fname, H5F_ACC_RDONLY, H5P_DEFAULT, FALSE, NULL, (size_t)0)) < 0) {
fprintf(stderr, "h5fc_chk_idx: unable to open the file\n");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
} /* end if */
/* Open the dataset */
if ((did = H5Dopen2(fid, dname, H5P_DEFAULT)) < 0) {
fprintf(stderr, "h5fc_chk_idx: unable to open the dataset\n");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
} /* end if */
/* Get the dataset's chunk indexing type */
if (H5Dget_chunk_index_type(did, &idx_type) < 0) {
fprintf(stderr, "h5fc_chk_idx: unable to get chunk index type for the dataset\n");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
} /* end if */
/* Close the dataset */
if (H5Dclose(did) < 0) {
fprintf(stderr, "h5fc_chk_idx: unable to close the dataset\n");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
} /* end if */
/* Close the file */
if (H5Fclose(fid) < 0) {
fprintf(stderr, "h5fc_chk_idx_type: cannot close the file\n");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
} /* end if */
/* Return success when the chunk indexing type is version 1 B-tree */
if (idx_type == H5D_CHUNK_IDX_BTREE)
- HDexit(EXIT_SUCCESS);
+ exit(EXIT_SUCCESS);
else {
fprintf(stderr, "Error: chunk indexing type is %d\n", idx_type);
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
} /* end if */
} /* main() */
diff --git a/tools/test/h5jam/getub.c b/tools/test/h5jam/getub.c
index 5ac9c7f..139ead6 100644
--- a/tools/test/h5jam/getub.c
+++ b/tools/test/h5jam/getub.c
@@ -64,14 +64,14 @@ parse_command_line(int argc, const char *const *argv)
case '?':
default:
usage(h5tools_getprogname());
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
} /* end switch */
} /* end while */
if (argc <= H5_optind) {
error_msg("missing file name\n");
usage(h5tools_getprogname());
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
} /* end if */
} /* end parse_command_line() */
diff --git a/tools/test/h5jam/tellub.c b/tools/test/h5jam/tellub.c
index ba0457b..4b5606c 100644
--- a/tools/test/h5jam/tellub.c
+++ b/tools/test/h5jam/tellub.c
@@ -85,7 +85,7 @@ static void
leave(int ret)
{
h5tools_close();
- HDexit(ret);
+ exit(ret);
}
/*-------------------------------------------------------------------------
diff --git a/tools/test/misc/clear_open_chk.c b/tools/test/misc/clear_open_chk.c
index b57eb4a..ec86ec4 100644
--- a/tools/test/misc/clear_open_chk.c
+++ b/tools/test/misc/clear_open_chk.c
@@ -45,7 +45,7 @@ main(int argc, char *argv[])
/* Check the # of arguments */
if (argc != 2) {
usage();
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
/* Get the file name */
@@ -55,16 +55,16 @@ main(int argc, char *argv[])
if ((fid = h5tools_fopen(fname, H5F_ACC_RDONLY, H5P_DEFAULT, FALSE, NULL, (size_t)0)) < 0) {
fprintf(stderr, "clear_open_chk: unable to open the file\n");
free(fname);
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
free(fname);
/* Close the file */
if (H5Fclose(fid) < 0) {
fprintf(stderr, "clear_open_chk: cannot close the file\n");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
/* Return success */
- HDexit(EXIT_SUCCESS);
+ exit(EXIT_SUCCESS);
} /* main() */
diff --git a/tools/test/misc/h5clear_gentest.c b/tools/test/misc/h5clear_gentest.c
index 3636c98..d2a5068 100644
--- a/tools/test/misc/h5clear_gentest.c
+++ b/tools/test/misc/h5clear_gentest.c
@@ -600,10 +600,10 @@ main(void)
fflush(stderr);
/* Not going through library closing by calling _exit(0) with success */
- HD_exit(0);
+ _exit(0);
error:
/* Exit with failure */
- HD_exit(1);
+ _exit(1);
}
diff --git a/tools/test/misc/h5repart_gentest.c b/tools/test/misc/h5repart_gentest.c
index 1f26c4d..5d5cb2f 100644
--- a/tools/test/misc/h5repart_gentest.c
+++ b/tools/test/misc/h5repart_gentest.c
@@ -38,11 +38,11 @@ main(void)
/* Set up data array */
if (NULL == (buf_data = (int *)calloc(FAMILY_NUMBER * FAMILY_SIZE, sizeof(int)))) {
HDperror("calloc");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
if (NULL == (buf = (int **)calloc(FAMILY_NUMBER, sizeof(buf_data)))) {
HDperror("calloc");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
for (i = 0; i < FAMILY_NUMBER; i++)
buf[i] = buf_data + (i * FAMILY_SIZE);
@@ -50,28 +50,28 @@ main(void)
/* Set property list and file name for FAMILY driver */
if ((fapl = H5Pcreate(H5P_FILE_ACCESS)) < 0) {
HDperror("H5Pcreate");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
if (H5Pset_fapl_family(fapl, (hsize_t)FAMILY_SIZE, H5P_DEFAULT) < 0) {
HDperror("H5Pset_fapl_family");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
if ((file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0) {
HDperror("H5Fcreate");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
/* Create and write dataset */
if ((space = H5Screate_simple(2, dims, NULL)) < 0) {
HDperror("H5Screate_simple");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
if ((dset = H5Dcreate2(file, dname, H5T_NATIVE_INT, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
HDperror("H5Dcreate2");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
for (i = 0; i < FAMILY_NUMBER; i++)
@@ -80,27 +80,27 @@ main(void)
if (H5Dwrite(dset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, buf_data) < 0) {
HDperror("H5Dwrite");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
if (H5Sclose(space) < 0) {
HDperror("H5Sclose");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
if (H5Dclose(dset) < 0) {
HDperror("H5Dclose");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
if (H5Pclose(fapl) < 0) {
HDperror("H5Pclose");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
if (H5Fclose(file) < 0) {
HDperror("H5Fclose");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
free(buf);
diff --git a/tools/test/misc/repart_test.c b/tools/test/misc/repart_test.c
index 1ff6230..3857ee2 100644
--- a/tools/test/misc/repart_test.c
+++ b/tools/test/misc/repart_test.c
@@ -142,10 +142,10 @@ main(void)
if (nerrors)
goto error;
- HDexit(EXIT_SUCCESS);
+ exit(EXIT_SUCCESS);
error:
nerrors = MAX(1, nerrors);
printf("***** %d FAMILY FILE TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
} /* end main() */
diff --git a/tools/test/perform/zip_perf.c b/tools/test/perform/zip_perf.c
index c891bf9..7527716 100644
--- a/tools/test/perform/zip_perf.c
+++ b/tools/test/perform/zip_perf.c
@@ -90,7 +90,7 @@ error(const char *fmt, ...)
H5_GCC_CLANG_DIAG_ON("format-nonliteral")
fprintf(stderr, "\n");
va_end(ap);
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
/*