summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/cache.c6
-rw-r--r--test/cache_common.c1
-rw-r--r--test/lheap.c2
3 files changed, 1 insertions, 8 deletions
diff --git a/test/cache.c b/test/cache.c
index 1e5ec0e..960eea4 100644
--- a/test/cache.c
+++ b/test/cache.c
@@ -15650,11 +15650,6 @@ check_unprotect_ro_dirty_err(void)
* -- should succeed.
*/
- /* at present this test will fail due to code allowing current code
- * to function with errors that are not dangerous. Thus this test
- * is commented out for now. Put in back into use as soon as possible.
- */
-#if 0 /* JRM */
if ( pass ) {
reset_entries();
@@ -15687,7 +15682,6 @@ check_unprotect_ro_dirty_err(void)
takedown_cache(cache_ptr, FALSE, FALSE);
}
-#endif
/* allocate a another cache, protect an entry read only twice, and
* then unprotect it with the dirtied flag set. This should fail.
diff --git a/test/cache_common.c b/test/cache_common.c
index 7764fd0..d2be959 100644
--- a/test/cache_common.c
+++ b/test/cache_common.c
@@ -1580,7 +1580,6 @@ reset_entries(void)
base_addr[j].header.is_protected = FALSE;
base_addr[j].header.is_read_only = FALSE;
base_addr[j].header.ro_ref_count = FALSE;
- base_addr[j].header.max_ro_ref_count = 0;
base_addr[j].header.next = NULL;
base_addr[j].header.prev = NULL;
base_addr[j].header.aux_next = NULL;
diff --git a/test/lheap.c b/test/lheap.c
index 8f496f4..60c0b85 100644
--- a/test/lheap.c
+++ b/test/lheap.c
@@ -125,7 +125,7 @@ main(void)
for (j=4; j<i; j++) buf[j] = '0' + j%10;
if (j>4) buf[j] = '\0';
- if (NULL == (heap = H5HL_protect(f, H5P_DATASET_XFER_DEFAULT, heap_addr))) {
+ if (NULL == (heap = H5HL_protect(f, H5P_DATASET_XFER_DEFAULT, heap_addr, H5AC_READ))) {
H5_FAILED();
H5Eprint2(H5E_DEFAULT, stdout);
goto error;