diff options
Diffstat (limited to 'test/cache_common.c')
-rw-r--r-- | test/cache_common.c | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/test/cache_common.c b/test/cache_common.c index 4436d7f..945442a 100644 --- a/test/cache_common.c +++ b/test/cache_common.c @@ -3535,21 +3535,17 @@ flush_cache(H5F_t * file_ptr, void cork_entry_type(H5F_t *file_ptr, int32_t type) { - H5C_t *cache_ptr; - haddr_t baddrs; - herr_t result; - if(pass) { + H5C_t *cache_ptr; + haddr_t baddrs; + cache_ptr = file_ptr->shared->cache; - HDassert( cache_ptr ); - HDassert( ( 0 <= type ) && ( type < NUMBER_OF_ENTRY_TYPES ) ); + HDassert(cache_ptr); + HDassert((0 <= type) && (type < NUMBER_OF_ENTRY_TYPES)); baddrs = base_addrs[type]; - - result = H5C_cork(cache_ptr, baddrs, H5C__SET_CORK, NULL); - if(result < 0) { - + if(H5C_cork(cache_ptr, baddrs, H5C__SET_CORK, NULL) < 0) { pass = FALSE; failure_mssg = "error in H5C_cork()."; } /* end if */ @@ -3575,21 +3571,17 @@ cork_entry_type(H5F_t *file_ptr, int32_t type) void uncork_entry_type(H5F_t *file_ptr, int32_t type) { - H5C_t *cache_ptr; - haddr_t baddrs; - herr_t result; - if(pass) { + H5C_t *cache_ptr; + haddr_t baddrs; + cache_ptr = file_ptr->shared->cache; - HDassert( cache_ptr ); - HDassert( ( 0 <= type ) && ( type < NUMBER_OF_ENTRY_TYPES ) ); + HDassert(cache_ptr); + HDassert((0 <= type) && (type < NUMBER_OF_ENTRY_TYPES)); baddrs = base_addrs[type]; - - result = H5C_cork(cache_ptr, baddrs, H5C__UNCORK, NULL); - if(result < 0) { - + if(H5C_cork(cache_ptr, baddrs, H5C__UNCORK, NULL) < 0) { pass = FALSE; failure_mssg = "error in H5C_cork()."; } /* end if */ |