summaryrefslogtreecommitdiffstats
path: root/test/cache_image.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-03-20 20:18:19 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-03-20 20:18:19 (GMT)
commit52f8d8a1b1577d5053fa79662ab5eafd410a329e (patch)
tree7060efd04062851209439f48f1facc62b77a6af6 /test/cache_image.c
parenta4a2dd2cc070060d2ccc8b7060f90c2839d8fa71 (diff)
downloadhdf5-52f8d8a1b1577d5053fa79662ab5eafd410a329e.zip
hdf5-52f8d8a1b1577d5053fa79662ab5eafd410a329e.tar.gz
hdf5-52f8d8a1b1577d5053fa79662ab5eafd410a329e.tar.bz2
Deduplicate create_zoo() and validate_zoo() and refactor for reuse by
VFD SWMR tests. This change reduces the length of genall5.c by 171 lines.
Diffstat (limited to 'test/cache_image.c')
-rw-r--r--test/cache_image.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/cache_image.c b/test/cache_image.c
index 59689a9..d3ade5c 100644
--- a/test/cache_image.c
+++ b/test/cache_image.c
@@ -4820,7 +4820,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
/* 3) Construct a "zoo" in the above group, and validate it. */
if ( pass )
- create_zoo(file_id, process_group_name, min_group);
+ create_zoo(file_id, process_group_name, min_group, false);
#if H5C_COLLECT_CACHE_STATS
if ( pass ) {
@@ -4892,7 +4892,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
/* 6) Validate the "zoo" created in the previous file open. */
if ( pass )
- validate_zoo(file_id, process_group_name, max_group);
+ validate_zoo(file_id, process_group_name, max_group, false);
#if H5C_COLLECT_CACHE_STATS
if ( pass ) {
@@ -4933,7 +4933,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
/* 8) Construct a "zoo" in the above group, and validate it. */
if ( pass )
- create_zoo(file_id, process_group_name, max_group);
+ create_zoo(file_id, process_group_name, max_group, false);
if ( show_progress )
HDfprintf(stdout, "%s:L4 cp = %d, max_group = %d, pass = %d.\n",
@@ -4994,7 +4994,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
i = min_group;
while(pass && i <= max_group) {
HDsprintf(process_group_name, "/process_%d", i);
- validate_zoo(file_id, process_group_name, i++);
+ validate_zoo(file_id, process_group_name, i++, false);
}
#if H5C_COLLECT_CACHE_STATS
@@ -5047,7 +5047,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
while ( ( pass ) && ( i <= max_group ) ) {
HDsprintf(process_group_name, "/process_%d", i);
- validate_zoo(file_id, process_group_name, i++);
+ validate_zoo(file_id, process_group_name, i++, false);
}
#if H5C_COLLECT_CACHE_STATS
@@ -5111,7 +5111,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
i = min_group;
while ( ( pass ) && ( i <= max_group ) ) {
HDsprintf(process_group_name, "/process_%d", i);
- validate_zoo(file_id, process_group_name, i++);
+ validate_zoo(file_id, process_group_name, i++, false);
}
#if H5C_COLLECT_CACHE_STATS