summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-08-18 17:48:17 (GMT)
committerGitHub <noreply@github.com>2022-08-18 17:48:17 (GMT)
commit82ebc9c370164931861f0d174e2b17a109478665 (patch)
treeac35dc2aca63a1cb8d8e9f0562eb76f94f71804d /test
parentfab27c25291d7f0b2d0a585178757dddddba1ace (diff)
downloadhdf5-82ebc9c370164931861f0d174e2b17a109478665.zip
hdf5-82ebc9c370164931861f0d174e2b17a109478665.tar.gz
hdf5-82ebc9c370164931861f0d174e2b17a109478665.tar.bz2
Spelling fixes for codespell (#2038)
* Spelling fixes for codespell * 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/cache.c11
-rw-r--r--test/cache_common.c4
-rw-r--r--test/cache_common.h4
-rw-r--r--test/chunk_info.c16
-rw-r--r--test/dsets.c12
-rw-r--r--test/enum.c10
-rw-r--r--test/file_image.c6
-rw-r--r--test/h5test.c2
-rw-r--r--test/hdfs.c2
-rw-r--r--test/objcopy.c4
-rw-r--r--test/page_buffer.c2
-rw-r--r--test/reserved.c5
-rw-r--r--test/ros3.c2
-rw-r--r--test/s3comms.c4
-rw-r--r--test/swmr_common.c2
-rw-r--r--test/swmr_reader.c2
-rw-r--r--test/swmr_sparse_writer.c2
-rw-r--r--test/th5s.c2
-rw-r--r--test/tselect.c4
-rw-r--r--test/ttsafe_rec_rw_lock.c6
-rw-r--r--test/twriteorder.c2
21 files changed, 47 insertions, 57 deletions
diff --git a/test/cache.c b/test/cache.c
index 57b7fef..f6f9074 100644
--- a/test/cache.c
+++ b/test/cache.c
@@ -9853,15 +9853,6 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr)
* Programmer: John Mainzer
* 1/12/05
*
- * Modifications:
- *
- * JRM -- 3/29/06
- * Added tests for pinned entries.
- *
- * JRM -- 5/17/06
- * Complete reqrite of pinned entry tests to accommodate
- * the new H5C_mark_entry_dirty() call.
- *
*-------------------------------------------------------------------------
*/
@@ -33492,7 +33483,7 @@ cedds__H5C_flush_invalidate_cache__bucket_scan(H5F_t *file_ptr)
if (pass) {
- /* load the entry that will have a flush dependencey with (MET, 0),
+ /* load the entry that will have a flush dependency with (MET, 0),
* thus preventing it from being flushed on the first pass through
* the skip list.
*/
diff --git a/test/cache_common.c b/test/cache_common.c
index 65da724..ce6d941 100644
--- a/test/cache_common.c
+++ b/test/cache_common.c
@@ -922,7 +922,7 @@ notify_image_len(const void *thing, size_t *image_length)
/*-------------------------------------------------------------------------
* Function: pre_serialize & friends
*
- * Purpose: Pre_serialize the supplied entry. For now this consistes of
+ * Purpose: Pre_serialize the supplied entry. For now this consists of
* executing any flush operations and loading the appropriate
* values into *new_addr_ptr, *new_len_ptr, and *flags_ptr.
*
@@ -1086,7 +1086,7 @@ notify_pre_serialize(H5F_t *f, void *thing, haddr_t addr, size_t len, haddr_t *n
/*-------------------------------------------------------------------------
* Function: serialize & friends
*
- * Purpose: Serialize the supplied entry. For now this consistes of
+ * Purpose: Serialize the supplied entry. For now this consists of
* loading the type and index of the entry into the first
* three bytes of the image (if it is long enough -- if not
* just load the low order byte of the index into the first
diff --git a/test/cache_common.h b/test/cache_common.h
index acc05f0..24ce509 100644
--- a/test/cache_common.h
+++ b/test/cache_common.h
@@ -253,7 +253,7 @@ typedef struct flush_op {
typedef enum test_entry_action_t {
TEST_ENTRY_ACTION_NUL = 0, /* No action on entry */
- TEST_ENTRY_ACTION_MOVE /* Entry is beging moved */
+ TEST_ENTRY_ACTION_MOVE /* Entry is being moved */
} test_entry_action_t;
typedef struct test_entry_t {
@@ -372,7 +372,7 @@ typedef struct test_entry_t {
* been resized by a resize flush
* op, and the flush function has
* not yet returned, This field is
- * used to turn off overactive santity
+ * used to turn off overactive sanity
* checking code that would otherwise
* cause a false test failure.
*/
diff --git a/test/chunk_info.c b/test/chunk_info.c
index 563334c..bcb3b5f 100644
--- a/test/chunk_info.c
+++ b/test/chunk_info.c
@@ -921,7 +921,7 @@ test_chunk_info_single_chunk(const char *filename, hid_t fapl)
if (ret != FAIL)
TEST_ERROR
- /* Release resourse */
+ /* Release resource */
if (H5Dclose(dset) < 0)
TEST_ERROR
if (H5Sclose(dspace) < 0)
@@ -1038,7 +1038,7 @@ test_chunk_info_implicit(char *filename, hid_t fapl)
FAIL_PUTS_ERROR("Verification of H5Dget_chunk_info_by_coord failed\n");
}
- /* Release resourse */
+ /* Release resource */
if (H5Dclose(dset) < 0)
TEST_ERROR
if (H5Sclose(dspace) < 0)
@@ -1183,7 +1183,7 @@ test_chunk_info_fixed_array(const char *filename, hid_t fapl)
/* Read and verify values of selected chunks */
if (verify_selected_chunks(dset, H5P_DEFAULT, start, end) < 0)
- /* Release resourse */
+ /* Release resource */
if (H5Dclose(dset) < 0)
TEST_ERROR
if (H5Sclose(dspace) < 0)
@@ -1332,7 +1332,7 @@ test_chunk_info_extensible_array(const char *filename, hid_t fapl)
/* Read and verify values of selected chunks */
if (verify_selected_chunks(dset, H5P_DEFAULT, start, end) < 0)
- /* Release resourse */
+ /* Release resource */
if (H5Dclose(dset) < 0)
TEST_ERROR
if (H5Sclose(dspace) < 0)
@@ -1481,7 +1481,7 @@ test_chunk_info_version2_btrees(const char *filename, hid_t fapl)
/* Read and verify values of selected chunks */
if (verify_selected_chunks(dset, H5P_DEFAULT, start, end) < 0)
- /* Release resourse */
+ /* Release resource */
if (H5Dclose(dset) < 0)
TEST_ERROR
if (H5Sclose(dspace) < 0)
@@ -1745,7 +1745,7 @@ test_basic_query(hid_t fapl)
if (cptr != &(chunk_infos[1]))
FAIL_PUTS_ERROR("Verification of halted iterator failed");
- /* Release resourse */
+ /* Release resource */
if (H5Dclose(dset) < 0)
TEST_ERROR
if (H5Sclose(dspace) < 0)
@@ -1874,7 +1874,7 @@ test_failed_attempts(const char *filename, hid_t fapl)
if (ret != FAIL)
FAIL_PUTS_ERROR(" Attempt a chunk query function on a contiguous dataset.")
- /* Release resourse */
+ /* Release resource */
if (H5Dclose(dset) < 0)
TEST_ERROR
if (H5Sclose(dspace) < 0)
@@ -2150,7 +2150,7 @@ test_flt_msk_with_skip_compress(hid_t fapl)
if (verify_get_chunk_info_by_coord(dset, offset, CHK_SIZE, flt_msk) == FAIL)
FAIL_PUTS_ERROR("Verification of H5Dget_chunk_info_by_coord failed\n");
- /* Release resourse */
+ /* Release resource */
if (H5Dclose(dset) < 0)
TEST_ERROR
if (H5Sclose(mem_space) < 0)
diff --git a/test/dsets.c b/test/dsets.c
index 87d8b81..4d0fe1b 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -1825,7 +1825,7 @@ filter_corrupt(unsigned int flags, size_t cd_nelmts, const unsigned int *cd_valu
TEST_ERROR
HDmemset(data, (int)value, (size_t)length);
- if (flags & H5Z_FLAG_REVERSE) { /* Varify data is actually corrupted during read */
+ if (flags & H5Z_FLAG_REVERSE) { /* Verify data is actually corrupted during read */
dst += offset;
if (HDmemcmp(data, dst, (size_t)length) != 0)
TEST_ERROR
@@ -7720,7 +7720,7 @@ test_missing_chunk(hid_t file)
if (H5Dread(did2, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, rdata2_bytes) < 0)
TEST_ERROR;
- /* Validata values read for the 1-D dataset */
+ /* Validate values read for the 1-D dataset */
for (u = 0; u < MISSING_CHUNK_DIM; u++) {
if ((u % 10) >= 5) {
if (rdata[u] != 911) {
@@ -7737,7 +7737,7 @@ test_missing_chunk(hid_t file)
} /* end else */
} /* end for */
- /* Validata values read for the 2-D dataset */
+ /* Validate values read for the 2-D dataset */
for (i = 0; i < MISSING_CHUNK_DIM; i++) {
for (j = 0; j < MISSING_CHUNK_DIM; j++) {
@@ -8843,7 +8843,7 @@ test_chunk_cache(hid_t fapl)
if ((dsid = H5Dcreate2(fid, "dset", H5T_NATIVE_INT, sid, H5P_DEFAULT, dcpl, dapl1)) < 0)
FAIL_STACK_ERROR
- /* Retrieve dapl from dataset, verfiy cache values are the same as on fapl_local */
+ /* Retrieve dapl from dataset, verify cache values are the same as on fapl_local */
if ((dapl2 = H5Dget_access_plist(dsid)) < 0)
FAIL_STACK_ERROR
if (H5Pget_chunk_cache(dapl2, &nslots_4, &nbytes_4, &w0_4) < 0)
@@ -8867,7 +8867,7 @@ test_chunk_cache(hid_t fapl)
if ((dsid = H5Oopen(fid, "dset", dapl1)) < 0)
FAIL_STACK_ERROR
- /* Retrieve dapl from dataset, verfiy cache values are the same as on dapl1 */
+ /* Retrieve dapl from dataset, verify cache values are the same as on dapl1 */
/* Note we rely on the knowledge that H5Pget_chunk_cache retrieves these
* values directly from the dataset structure, and not from a copy of the
* dapl used to open the dataset (which is not preserved).
@@ -8887,7 +8887,7 @@ test_chunk_cache(hid_t fapl)
if ((dsid = H5Dopen2(fid, "dset", H5P_DEFAULT)) < 0)
FAIL_STACK_ERROR
- /* Retrieve dapl from dataset, verfiy cache values are the same on fapl_local */
+ /* Retrieve dapl from dataset, verify cache values are the same on fapl_local */
if ((dapl2 = H5Dget_access_plist(dsid)) < 0)
FAIL_STACK_ERROR
if (H5Pget_chunk_cache(dapl2, &nslots_4, &nbytes_4, &w0_4) < 0)
diff --git a/test/enum.c b/test/enum.c
index 512fd9d..5695a79 100644
--- a/test/enum.c
+++ b/test/enum.c
@@ -541,7 +541,7 @@ test_value_dsnt_exist(void)
hid_t datatype_id = (-1); /* identifiers */
int val;
- char nam[100];
+ char name[100];
size_t size = 100;
TESTING("for non-existing name and value");
/* Turn off error reporting since we expect failure in this test */
@@ -556,7 +556,7 @@ test_value_dsnt_exist(void)
if (H5Tenum_valueof(datatype_id, "SAX", &val) >= 0)
goto error;
val = 3;
- if (H5Tenum_nameof(datatype_id, &val, nam, size) >= 0)
+ if (H5Tenum_nameof(datatype_id, &val, name, size) >= 0)
goto error;
val = 2;
@@ -571,17 +571,17 @@ test_value_dsnt_exist(void)
/* This call should fail since we did not create a member with value = 3*/
val = 3;
- if (H5Tenum_nameof(datatype_id, &val, nam, size) >= 0)
+ if (H5Tenum_nameof(datatype_id, &val, name, size) >= 0)
goto error;
/* This call should fail since we did not create a member with value = 11*/
val = 11;
- if (H5Tenum_nameof(datatype_id, &val, nam, size) >= 0)
+ if (H5Tenum_nameof(datatype_id, &val, name, size) >= 0)
goto error;
/* This call should fail since we did not create a member with value = 0*/
val = 0;
- if (H5Tenum_nameof(datatype_id, &val, nam, size) >= 0)
+ if (H5Tenum_nameof(datatype_id, &val, name, size) >= 0)
goto error;
/* This call should fail since we do not have SAX name in the type */
diff --git a/test/file_image.c b/test/file_image.c
index a5b0053..5b794c8 100644
--- a/test/file_image.c
+++ b/test/file_image.c
@@ -610,7 +610,7 @@ test_core(void)
VERIFY((udata->used_callbacks == MALLOC) || (udata->used_callbacks == (MALLOC | UDATA_COPY | UDATA_FREE)),
"opening a core file used the wrong callbacks");
VERIFY(udata->malloc_src == H5FD_FILE_IMAGE_OP_FILE_OPEN,
- "Malloc callback came from wrong sourc in core open");
+ "Malloc callback came from wrong source in core open");
/* Close file */
reset_udata(udata);
@@ -618,7 +618,7 @@ test_core(void)
VERIFY(ret >= 0, "H5Fclose failed");
VERIFY(udata->used_callbacks == FREE, "Closing a core file used the wrong callbacks");
VERIFY(udata->free_src == H5FD_FILE_IMAGE_OP_FILE_CLOSE,
- "Free callback came from wrong sourc in core close");
+ "Free callback came from wrong source in core close");
/* Reopen file */
file = H5Fopen(copied_filename, H5F_ACC_RDWR, fapl);
@@ -654,7 +654,7 @@ test_core(void)
VERIFY(ret >= 0, "H5Fclose failed");
VERIFY(udata->used_callbacks == (FREE), "Closing a core file used the wrong callbacks");
VERIFY(udata->free_src == H5FD_FILE_IMAGE_OP_FILE_CLOSE,
- "Free callback came from wrong sourc in core close");
+ "Free callback came from wrong source in core close");
/* Create file image buffer */
fd = HDopen(copied_filename, O_RDONLY);
diff --git a/test/h5test.c b/test/h5test.c
index 76f3482..8a59b4a 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -1533,7 +1533,7 @@ h5_szip_can_encode(void)
* further calls to getenv_all take place.
*
* Return: pointer to a string containing the value of the environment variable
- * NULL if the varialbe doesn't exist in task 'root's environment.
+ * NULL if the variable doesn't exist in task 'root's environment.
*
* Programmer: Leon Arber
* 4/4/05
diff --git a/test/hdfs.c b/test/hdfs.c
index cdc209f..8fec788 100644
--- a/test/hdfs.c
+++ b/test/hdfs.c
@@ -52,7 +52,7 @@
* 4) Configurable expected-actual order in generated comparison strings.
* Some prefer `VERIFY(expected, actual)`, others
* `VERIFY(actual, expected)`. Provide preprocessor ifdef switch
- * to satifsy both parties, assuming one paradigm per test file.
+ * to satisfy both parties, assuming one paradigm per test file.
* (One could #undef and redefine the flag through the file as desired,
* but _why_.)
*
diff --git a/test/objcopy.c b/test/objcopy.c
index 24441d3..aa141a1 100644
--- a/test/objcopy.c
+++ b/test/objcopy.c
@@ -3992,7 +3992,7 @@ test_copy_dataset_chunked_empty(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl,
if ((did = H5Dopen2(fid_src, NAME_DATASET_CHUNKED3, H5P_DEFAULT)) < 0)
TEST_ERROR
- /* open the copied dataset NAME_DATASET_CHUNKED3 at destinaion */
+ /* open the copied dataset NAME_DATASET_CHUNKED3 at destination */
if ((did2 = H5Dopen2(fid_dst, NAME_DATASET_CHUNKED3, H5P_DEFAULT)) < 0)
TEST_ERROR
@@ -11063,7 +11063,7 @@ typedef struct cmpd_vl_t {
* Failure: number of errors
*
* Programmer: Neil Fortner
- * Tuseday, September 29, 2009
+ * Tuesday, September 29, 2009
*
*-------------------------------------------------------------------------
*/
diff --git a/test/page_buffer.c b/test/page_buffer.c
index dd3d71f..d1b0c27 100644
--- a/test/page_buffer.c
+++ b/test/page_buffer.c
@@ -370,7 +370,7 @@ error:
* 1) verifying that API errors are caught.
*
* 2) verifying that the page buffer behaves more or less
- * as advertized.
+ * as advertised.
*
* Any data mis-matches or unexpected failures or successes
* reported by the HDF5 library result in test failure.
diff --git a/test/reserved.c b/test/reserved.c
index 57a9ca6..36291a4 100644
--- a/test/reserved.c
+++ b/test/reserved.c
@@ -479,7 +479,7 @@ error:
int
main(void)
{
- /* This test is currently not working properly; it should be revisted
+ /* This test is currently not working properly; it should be revisited
* when we have time.
*
* (Also, we should try to make this test work with all the VFDs)
@@ -509,8 +509,7 @@ main(void)
return num_errs;
}
else {
- HDputs(
- "All address space reservation tests skippped - Incompatible with current Virtual File Driver");
+ HDputs("All address space reservation tests skipped - Incompatible with current Virtual File Driver");
}
#endif /* BROKEN */
diff --git a/test/ros3.c b/test/ros3.c
index 1248b6f..110a50b 100644
--- a/test/ros3.c
+++ b/test/ros3.c
@@ -56,7 +56,7 @@
* 4) Configurable expected-actual order in generated comparison strings.
* Some prefer `VERIFY(expected, actual)`, others
* `VERIFY(actual, expected)`. Provide preprocessor ifdef switch
- * to satifsy both parties, assuming one paradigm per test file.
+ * to satisfy both parties, assuming one paradigm per test file.
* (One could #undef and redefine the flag through the file as desired,
* but _why_.)
*
diff --git a/test/s3comms.c b/test/s3comms.c
index 5af5438..ee2e4f3 100644
--- a/test/s3comms.c
+++ b/test/s3comms.c
@@ -47,7 +47,7 @@
* 4) Configurable expected-actual order in generated comparison strings.
* Some prefer `VERIFY(expected, actual)`, others
* `VERIFY(actual, expected)`. Provide preprocessor ifdef switch
- * to satifsy both parties, assuming one paradigm per test file.
+ * to satisfy both parties, assuming one paradigm per test file.
* (One could #undef and redefine the flag through the file as desired,
* but _why_.)
* Provided as courtesy, per consideration for inclusion in the library
@@ -1374,7 +1374,7 @@ test_nlowercase(void)
HDfree(dest);
} /* end for each testcase */
- JSVERIFY(FAIL, H5FD_s3comms_nlowercase(NULL, cases[0].in, cases[0].len), "null distination should fail")
+ JSVERIFY(FAIL, H5FD_s3comms_nlowercase(NULL, cases[0].in, cases[0].len), "null destination should fail")
PASSED();
return 0;
diff --git a/test/swmr_common.c b/test/swmr_common.c
index 2201427..2665969 100644
--- a/test/swmr_common.c
+++ b/test/swmr_common.c
@@ -187,7 +187,7 @@ generate_name(char *name_buf, unsigned level, unsigned count)
/*-------------------------------------------------------------------------
* Function: generate_symbols
*
- * Purpose: Initializes the global dataset infomration arrays.
+ * Purpose: Initializes the global dataset information arrays.
*
* Parameters: N/A
*
diff --git a/test/swmr_reader.c b/test/swmr_reader.c
index 0566613..3369562 100644
--- a/test/swmr_reader.c
+++ b/test/swmr_reader.c
@@ -275,7 +275,7 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file, unsigned
if ((fapl = h5_fileaccess()) < 0)
return -1;
- /* Log I/O when verbose output it enbabled */
+ /* Log I/O when verbose output it enabled */
if (use_log_vfd) {
char verbose_name[1024];
diff --git a/test/swmr_sparse_writer.c b/test/swmr_sparse_writer.c
index 96eff6c..0c8e391 100644
--- a/test/swmr_sparse_writer.c
+++ b/test/swmr_sparse_writer.c
@@ -149,7 +149,7 @@ add_records(hid_t fid, unsigned verbose, unsigned long nrecords, unsigned long f
symbol_t record; /* The record to add to the dataset */
unsigned long rec_to_flush; /* # of records left to write before flush */
#ifdef OUT
- volatile int dummy; /* Dummy varialbe for busy sleep */
+ volatile int dummy; /* Dummy variable for busy sleep */
#endif /* OUT */
hsize_t dim[2] = {1, 0}; /* Dataspace dimensions */
unsigned long u, v; /* Local index variables */
diff --git a/test/th5s.c b/test/th5s.c
index 329f3cf..e016e74 100644
--- a/test/th5s.c
+++ b/test/th5s.c
@@ -1104,7 +1104,7 @@ test_h5s_zero_dim(void)
dset1 = H5Dopen2(fid1, BASICDATASET1, H5P_DEFAULT);
CHECK(dset1, FAIL, "H5Dopen2");
- /* Get the space of the dataset and querry it */
+ /* Get the space of the dataset and query it */
sid1 = H5Dget_space(dset1);
CHECK(sid1, FAIL, "H5Dget_space");
diff --git a/test/tselect.c b/test/tselect.c
index 62be284..d0bdc34 100644
--- a/test/tselect.c
+++ b/test/tselect.c
@@ -6785,7 +6785,7 @@ test_select_point_chunk(void)
/* Verify data (later) */
- /* Close everything (inclusing selections) */
+ /* Close everything (including selections) */
ret = H5Sclose(pnt1_space);
CHECK(ret, FAIL, "H5Sclose");
ret = H5Sclose(pnt2_space);
@@ -10957,7 +10957,7 @@ test_shape_same_dr__full_space_vs_slice(int test_num, int small_rank, int large_
** m-cube (m >= n).
**
** 2) The dimensions selected in the slice through the m-cube
-** are the dimesnions with the most quickly changing
+** are the dimensions with the most quickly changing
** indices.
**
****************************************************************/
diff --git a/test/ttsafe_rec_rw_lock.c b/test/ttsafe_rec_rw_lock.c
index d166445..551e4ba 100644
--- a/test/ttsafe_rec_rw_lock.c
+++ b/test/ttsafe_rec_rw_lock.c
@@ -590,7 +590,7 @@ tts_rw_lock_smoke_check_test_thread(void *_udata)
* The reader threads obtain and drop the read lock a specified
* number of times. Once a reader has a read lock, it does random
* recursive read locks / unlocks until drops the read lock, and then
- * repeats the process until the spcified number of read locks have
+ * repeats the process until the specified number of read locks have
* been acquired and dropped.
*
* Created Sept. 3. 2020.
@@ -836,7 +836,7 @@ cleanup_rec_rw_lock_smoke_check_2(void)
* The writer threads obtain and drop the read lock a specified
* number of times. Once a writeer has a write lock, it does random
* recursive write locks / unlocks until drops the write lock, and then
- * repeats the process until the spcified number of write locks have
+ * repeats the process until the specified number of write locks have
* been acquired and dropped.
*
* Created Sept. 3. 2020.
@@ -1082,7 +1082,7 @@ cleanup_rec_rw_lock_smoke_check_3(void)
* The reader / writer threads obtain and drop the read or write
* locks a specified number of times. Once a thread has a lock, it
* does random recursive locks / unlocks until drops the lock, and then
- * repeats the process until the spcified number of locks have
+ * repeats the process until the specified number of locks have
* been acquired and dropped.
*
* Created Sept. 3. 2020.
diff --git a/test/twriteorder.c b/test/twriteorder.c
index c58b030..c7984e7 100644
--- a/test/twriteorder.c
+++ b/test/twriteorder.c
@@ -294,7 +294,7 @@ write_wo_file(void)
return -1;
}
- /* all writes done. return succeess. */
+ /* all writes done. return success. */
#ifdef DEBUG
HDprintf("wrote %d blocks\n", nlinkedblock_g);
#endif