summaryrefslogtreecommitdiffstats
path: root/test/cache_common.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-08-17 19:55:18 (GMT)
committerGitHub <noreply@github.com>2021-08-17 19:55:18 (GMT)
commitc0ef1fd6de3ff20cc8fc49c05ca71254c784bea6 (patch)
treefb2bdf05e276e3614b3b5c343447cd82f4e6718b /test/cache_common.c
parent2bca2ca6f1ef1b60bb8541413c5f2e68ff5549d3 (diff)
downloadhdf5-c0ef1fd6de3ff20cc8fc49c05ca71254c784bea6.zip
hdf5-c0ef1fd6de3ff20cc8fc49c05ca71254c784bea6.tar.gz
hdf5-c0ef1fd6de3ff20cc8fc49c05ca71254c784bea6.tar.bz2
Reverts PR 906 and 907 due to binary compatibility issues (#918)
Diffstat (limited to 'test/cache_common.c')
-rw-r--r--test/cache_common.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/cache_common.c b/test/cache_common.c
index e86724f..7269c49 100644
--- a/test/cache_common.c
+++ b/test/cache_common.c
@@ -1487,6 +1487,12 @@ add_flush_op(int target_type, int target_idx, int op_code, int type, int idx, hb
HDassert((0 <= type) && (type < NUMBER_OF_ENTRY_TYPES));
HDassert((0 <= idx) && (idx <= max_indices[type]));
HDassert(new_size <= VARIABLE_ENTRY_SIZE);
+#ifndef H5_HAVE_STDBOOL_H
+ /* Check for TRUE or FALSE if we're using an integer type instead
+ * of a real Boolean type.
+ */
+ HDassert((flag == TRUE) || (flag == FALSE));
+#endif /* H5_HAVE_STDBOOL_H */
if (pass) {
@@ -1686,6 +1692,12 @@ execute_flush_op(H5F_t *file_ptr, struct test_entry_t *entry_ptr, struct flush_o
HDassert((0 <= op_ptr->type) && (op_ptr->type < NUMBER_OF_ENTRY_TYPES));
HDassert((0 <= op_ptr->idx) && (op_ptr->idx <= max_indices[op_ptr->type]));
HDassert(flags_ptr != NULL);
+#ifndef H5_HAVE_STDBOOL_H
+ /* Check for TRUE or FALSE if we're using an integer type instead
+ * of a real Boolean type.
+ */
+ HDassert((op_ptr->flag == FALSE) || (op_ptr->flag == TRUE));
+#endif /* H5_HAVE_STDBOOL_H */
if (pass) {