summaryrefslogtreecommitdiffstats
path: root/test/cache.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2017-10-02 16:35:59 (GMT)
committerQuincey Koziol <koziol@lbl.gov>2017-10-02 16:35:59 (GMT)
commit9d6ba29a01079e0f81ffa530605d8cd830378f9c (patch)
tree3db9959e2002c6121c002a130dbf3965b9026a82 /test/cache.c
parentb7e563266e8484c96d5ac75b9dcec2337bb15d43 (diff)
parent744b6b282f087ce23310805dc24ce8f8b351fb61 (diff)
downloadhdf5-9d6ba29a01079e0f81ffa530605d8cd830378f9c.zip
hdf5-9d6ba29a01079e0f81ffa530605d8cd830378f9c.tar.gz
hdf5-9d6ba29a01079e0f81ffa530605d8cd830378f9c.tar.bz2
Merge pull request #687 in HDFFV/hdf5 from merge_full_swmr_02 to develop
* commit '744b6b282f087ce23310805dc24ce8f8b351fb61': Better segregate clean & dirty LRU lists so that they are only defined when the H5C_MAINTAIN_CLEAN_AND_DIRTY_LRU_LISTS macro is defined.
Diffstat (limited to 'test/cache.c')
-rw-r--r--test/cache.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/cache.c b/test/cache.c
index 3df8156..97a1b91 100644
--- a/test/cache.c
+++ b/test/cache.c
@@ -3116,13 +3116,14 @@ check_insert_entry(unsigned paged)
(cache_ptr->pel_len != 2) ||
(cache_ptr->pel_size != 2 * entry_sizes[entry_type]) ||
(cache_ptr->LRU_list_len != 2) ||
- (cache_ptr->LRU_list_size != 2 * entry_sizes[entry_type]) ||
+ (cache_ptr->LRU_list_size != 2 * entry_sizes[entry_type])
#if H5C_MAINTAIN_CLEAN_AND_DIRTY_LRU_LISTS
- (cache_ptr->dLRU_list_len != 2) ||
+ || (cache_ptr->dLRU_list_len != 2) ||
(cache_ptr->dLRU_list_size != 2 * entry_sizes[entry_type]) ||
-#endif /* H5C_MAINTAIN_CLEAN_AND_DIRTY_LRU_LISTS */
(cache_ptr->cLRU_list_len != 0) ||
- (cache_ptr->cLRU_list_size != (size_t)0)) {
+ (cache_ptr->cLRU_list_size != (size_t)0)
+#endif /* H5C_MAINTAIN_CLEAN_AND_DIRTY_LRU_LISTS */
+ ) {
pass = FALSE;
failure_mssg = "Unexpected insert results 10.";