summaryrefslogtreecommitdiffstats
path: root/test/cache.c
diff options
context:
space:
mode:
authorQuincey Koziol <quincey@koziol.cc>2023-05-15 18:54:58 (GMT)
committerGitHub <noreply@github.com>2023-05-15 18:54:58 (GMT)
commit940bdafacb32147b5b20d6d8994c89b696592f6f (patch)
tree4bc329c767039f2aef7808104a43f2a840ba8e32 /test/cache.c
parent20e72f98b2063aa349cdec8b56ca6e4ab54a15cc (diff)
downloadhdf5-940bdafacb32147b5b20d6d8994c89b696592f6f.zip
hdf5-940bdafacb32147b5b20d6d8994c89b696592f6f.tar.gz
hdf5-940bdafacb32147b5b20d6d8994c89b696592f6f.tar.bz2
Remove unnecessary fields from cache structs (#2951)
* Remove unnecessary 'magic' field from cache structs Signed-off-by: Quincey Koziol <quincey@koziol.cc> * Committing clang-format changes --------- Signed-off-by: Quincey Koziol <quincey@koziol.cc> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test/cache.c')
-rw-r--r--test/cache.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/test/cache.c b/test/cache.c
index 517c0b5..203c09a 100644
--- a/test/cache.c
+++ b/test/cache.c
@@ -24795,17 +24795,6 @@ check_auto_cache_resize_input_errs(unsigned paged)
if (pass) {
- result = H5C_get_cache_auto_resize_config((const H5C_t *)&test_auto_size_ctl, &test_auto_size_ctl);
-
- if (result != FAIL) {
-
- pass = FALSE;
- failure_mssg = "H5C_get_cache_auto_resize_config accepted bad cache_ptr.\n";
- }
- }
-
- if (pass) {
-
result = H5C_get_cache_auto_resize_config(cache_ptr, NULL);
if (result != FAIL) {
@@ -33918,13 +33907,6 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged)
if (verbose)
HDfprintf(stdout, "%s: H5C_create() failed.\n", __func__);
}
- else if (cache_ptr->magic != H5C__H5C_T_MAGIC) {
- pass = FALSE;
- failure_mssg = "Bad cache_ptr magic.";
-
- if (verbose)
- HDfprintf(stdout, "%s: Bad cache_ptr magic.\n", __func__);
- }
}
if (show_progress) /* 7 */