summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-28 14:30:54 (GMT)
committerGitHub <noreply@github.com>2023-06-28 14:30:54 (GMT)
commit6df077953ed8be3ac9ed247aaeac0c7f502161c9 (patch)
tree9c75a06d0c52c788a144435508d6a38e34c50757 /test
parentf5ca9237a296f6deefb633b6fb1d61daea4b4f6e (diff)
downloadhdf5-6df077953ed8be3ac9ed247aaeac0c7f502161c9.zip
hdf5-6df077953ed8be3ac9ed247aaeac0c7f502161c9.tar.gz
hdf5-6df077953ed8be3ac9ed247aaeac0c7f502161c9.tar.bz2
Rename HDqsort() to qsort() (#3193)
* Rename HDqsort() to qsort() * Committing clang-format changes --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test')
-rw-r--r--test/API/titerate.c8
-rw-r--r--test/API/tselect.c4
-rw-r--r--test/titerate.c8
-rw-r--r--test/tselect.c4
-rw-r--r--test/tskiplist.c4
5 files changed, 14 insertions, 14 deletions
diff --git a/test/API/titerate.c b/test/API/titerate.c
index 6d86130..e528803 100644
--- a/test/API/titerate.c
+++ b/test/API/titerate.c
@@ -205,7 +205,7 @@ test_iter_group(hid_t fapl, hbool_t new_format)
CHECK(ret, FAIL, "H5Fclose");
/* Sort the dataset names */
- HDqsort(lnames, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp);
+ qsort(lnames, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp);
/* Iterate through the datasets in the root group in various ways */
file = H5Fopen(DATAFILE, H5F_ACC_RDONLY, fapl);
@@ -749,7 +749,7 @@ test_iter_group_large(hid_t fapl)
CHECK(ret, FAIL, "H5Tclose");
/* Need to sort the names in the root group, cause that's what the library does */
- HDqsort(names, (size_t)(ITER_NGROUPS + 2), sizeof(iter_info), iter_strcmp2);
+ qsort(names, (size_t)(ITER_NGROUPS + 2), sizeof(iter_info), iter_strcmp2);
/* Iterate through the file to see members of the root group */
curr_name = &names[0];
@@ -848,7 +848,7 @@ test_grp_memb_funcs(hid_t fapl)
CHECK(ret, FAIL, "H5Fclose");
/* Sort the dataset names */
- HDqsort(dnames, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp);
+ qsort(dnames, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp);
/* Iterate through the datasets in the root group in various ways */
file = H5Fopen(DATAFILE, H5F_ACC_RDONLY, fapl);
@@ -905,7 +905,7 @@ test_grp_memb_funcs(hid_t fapl)
VERIFY(ret, FAIL, "H5Lget_name_by_idx");
/* Sort the dataset names */
- HDqsort(obj_names, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp);
+ qsort(obj_names, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp);
/* Compare object names */
for (i = 0; i < (int)ginfo.nlinks; i++) {
diff --git a/test/API/tselect.c b/test/API/tselect.c
index a2f377d..292bf84 100644
--- a/test/API/tselect.c
+++ b/test/API/tselect.c
@@ -1383,8 +1383,8 @@ test_select_hyper_stride(hid_t xfer_plist)
CHECK(ret, FAIL, "H5Dread");
/* Sort the locations into the proper order */
- HDqsort(loc1, (size_t)72, sizeof(size_t), compare_size_t);
- HDqsort(loc2, (size_t)72, sizeof(size_t), compare_size_t);
+ qsort(loc1, (size_t)72, sizeof(size_t), compare_size_t);
+ qsort(loc2, (size_t)72, sizeof(size_t), compare_size_t);
/* Compare data read with data written out */
for (i = 0; i < 72; i++) {
tbuf = wbuf + loc1[i];
diff --git a/test/titerate.c b/test/titerate.c
index 674405c..458be8e 100644
--- a/test/titerate.c
+++ b/test/titerate.c
@@ -194,7 +194,7 @@ test_iter_group(hid_t fapl, hbool_t new_format)
CHECK(ret, FAIL, "H5Fclose");
/* Sort the dataset names */
- HDqsort(lnames, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp);
+ qsort(lnames, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp);
/* Iterate through the datasets in the root group in various ways */
file = H5Fopen(DATAFILE, H5F_ACC_RDONLY, fapl);
@@ -706,7 +706,7 @@ test_iter_group_large(hid_t fapl)
CHECK(ret, FAIL, "H5Tclose");
/* Need to sort the names in the root group, cause that's what the library does */
- HDqsort(names, (size_t)(ITER_NGROUPS + 2), sizeof(iter_info), iter_strcmp2);
+ qsort(names, (size_t)(ITER_NGROUPS + 2), sizeof(iter_info), iter_strcmp2);
/* Iterate through the file to see members of the root group */
curr_name = &names[0];
@@ -804,7 +804,7 @@ test_grp_memb_funcs(hid_t fapl)
CHECK(ret, FAIL, "H5Fclose");
/* Sort the dataset names */
- HDqsort(dnames, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp);
+ qsort(dnames, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp);
/* Iterate through the datasets in the root group in various ways */
file = H5Fopen(DATAFILE, H5F_ACC_RDONLY, fapl);
@@ -861,7 +861,7 @@ test_grp_memb_funcs(hid_t fapl)
VERIFY(ret, FAIL, "H5Lget_name_by_idx");
/* Sort the dataset names */
- HDqsort(obj_names, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp);
+ qsort(obj_names, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp);
/* Compare object names */
for (i = 0; i < (int)ginfo.nlinks; i++) {
diff --git a/test/tselect.c b/test/tselect.c
index 97061fe..8079353 100644
--- a/test/tselect.c
+++ b/test/tselect.c
@@ -1382,8 +1382,8 @@ test_select_hyper_stride(hid_t xfer_plist)
CHECK(ret, FAIL, "H5Dread");
/* Sort the locations into the proper order */
- HDqsort(loc1, (size_t)72, sizeof(size_t), compare_size_t);
- HDqsort(loc2, (size_t)72, sizeof(size_t), compare_size_t);
+ qsort(loc1, (size_t)72, sizeof(size_t), compare_size_t);
+ qsort(loc2, (size_t)72, sizeof(size_t), compare_size_t);
/* Compare data read with data written out */
for (i = 0; i < 72; i++) {
tbuf = wbuf + loc1[i];
diff --git a/test/tskiplist.c b/test/tskiplist.c
index 1d01839..07fe5dc 100644
--- a/test/tskiplist.c
+++ b/test/tskiplist.c
@@ -100,13 +100,13 @@ test_skiplist_init(void)
HDmemcpy(sort_rand_num, rand_num, sizeof(int) * NUM_ELEMS);
/* Sort random numbers */
- HDqsort(sort_rand_num, (size_t)NUM_ELEMS, sizeof(int), tst_sort);
+ qsort(sort_rand_num, (size_t)NUM_ELEMS, sizeof(int), tst_sort);
/* Copy random values to reverse sorted array */
HDmemcpy(rev_sort_rand_num, rand_num, sizeof(int) * NUM_ELEMS);
/* Sort random numbers */
- HDqsort(rev_sort_rand_num, (size_t)NUM_ELEMS, sizeof(int), tst_rev_sort);
+ qsort(rev_sort_rand_num, (size_t)NUM_ELEMS, sizeof(int), tst_rev_sort);
} /* end test_skiplist_init() */
/****************************************************************