summaryrefslogtreecommitdiffstats
path: root/test/genall5.h
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-03-31 18:13:39 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-03-31 18:13:39 (GMT)
commit69fcb52eca6ec15f366c069fb9beb29190d58ba1 (patch)
tree22f4cc0752bf362e75d4e99b7c134bb4b3e25531 /test/genall5.h
parent817756a0e0a84a376e3c399f13ff495fde7a10a4 (diff)
downloadhdf5-69fcb52eca6ec15f366c069fb9beb29190d58ba1.zip
hdf5-69fcb52eca6ec15f366c069fb9beb29190d58ba1.tar.gz
hdf5-69fcb52eca6ec15f366c069fb9beb29190d58ba1.tar.bz2
Prepare for reuse in vfd_swmr_zoo_{reader,writer}: in
validate_zoo()/check_zoo(), instead of checking/modifying the global variable `pass`, just return `false` on failure, `true` on success. Update test `cache_image` to match.
Diffstat (limited to 'test/genall5.h')
-rw-r--r--test/genall5.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/test/genall5.h b/test/genall5.h
index 10f621b..3878da1 100644
--- a/test/genall5.h
+++ b/test/genall5.h
@@ -18,38 +18,38 @@
* in genall5.c
*/
-void create_zoo(hid_t fid, const char *base_path, int proc_num,
+bool create_zoo(hid_t fid, const char *base_path, int proc_num,
bool skip_varlen);
-void validate_zoo(hid_t fid, const char *base_path, int proc_num,
+bool validate_zoo(hid_t fid, const char *base_path, int proc_num,
bool skip_varlen);
-void ns_grp_0(hid_t fid, const char *group_name);
-void vrfy_ns_grp_0(hid_t fid, const char *group_name);
+bool ns_grp_0(hid_t fid, const char *group_name);
+bool vrfy_ns_grp_0(hid_t fid, const char *group_name);
-void ns_grp_c(hid_t fid, const char *group_name, unsigned nlinks);
-void vrfy_ns_grp_c(hid_t fid, const char *group_name, unsigned nlinks);
+bool ns_grp_c(hid_t fid, const char *group_name, unsigned nlinks);
+bool vrfy_ns_grp_c(hid_t fid, const char *group_name, unsigned nlinks);
-void ns_grp_d(hid_t fid, const char *group_name, unsigned nlinks);
-void vrfy_ns_grp_d(hid_t fid, const char *group_name, unsigned nlinks);
+bool ns_grp_d(hid_t fid, const char *group_name, unsigned nlinks);
+bool vrfy_ns_grp_d(hid_t fid, const char *group_name, unsigned nlinks);
-void os_grp_0(hid_t fid, const char *group_name);
-void vrfy_os_grp_0(hid_t fid, const char *group_name);
+bool os_grp_0(hid_t fid, const char *group_name);
+bool vrfy_os_grp_0(hid_t fid, const char *group_name);
-void os_grp_n(hid_t fid, const char *group_name, int proc_num, unsigned nlinks);
-void vrfy_os_grp_n(hid_t fid, const char *group_name, int proc_num,
+bool os_grp_n(hid_t fid, const char *group_name, int proc_num, unsigned nlinks);
+bool vrfy_os_grp_n(hid_t fid, const char *group_name, int proc_num,
unsigned nlinks);
-void ds_ctg_i(hid_t fid, const char *dset_name, hbool_t write_data);
-void vrfy_ds_ctg_i(hid_t fid, const char *dset_name, hbool_t write_data);
+bool ds_ctg_i(hid_t fid, const char *dset_name, hbool_t write_data);
+bool vrfy_ds_ctg_i(hid_t fid, const char *dset_name, hbool_t write_data);
-void ds_chk_i(hid_t fid, const char *dset_name, hbool_t write_data);
-void vrfy_ds_chk_i(hid_t fid, const char *dset_name, hbool_t write_data);
+bool ds_chk_i(hid_t fid, const char *dset_name, hbool_t write_data);
+bool vrfy_ds_chk_i(hid_t fid, const char *dset_name, hbool_t write_data);
-void ds_cpt_i(hid_t fid, const char *dset_name, hbool_t write_data);
-void vrfy_ds_cpt_i(hid_t fid, const char *dset_name, hbool_t write_data);
+bool ds_cpt_i(hid_t fid, const char *dset_name, hbool_t write_data);
+bool vrfy_ds_cpt_i(hid_t fid, const char *dset_name, hbool_t write_data);
-void ds_ctg_v(hid_t fid, const char *dset_name, hbool_t write_data);
-void vrfy_ds_ctg_v(hid_t fid, const char *dset_name, hbool_t write_data);
+bool ds_ctg_v(hid_t fid, const char *dset_name, hbool_t write_data);
+bool vrfy_ds_ctg_v(hid_t fid, const char *dset_name, hbool_t write_data);
/* Individual tests can override zoo_create_hook(), which is called
* after each step of create_zoo(). The `hid_t` argument identifies