mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[svn-r13697] Fixed error in check_unprotect_ro_dirty_err() in cache.c. Basic problem
was a failure to clean up properly after a test. I reproduced the failure on Phoenix before fixing it. As the error was relatively straight forward, I tested fix on Phoenix only.
This commit is contained in:
parent
2ac5e9f2e8
commit
30b6c4bcc1
10
test/cache.c
10
test/cache.c
@ -15650,7 +15650,6 @@ check_unprotect_ro_dirty_err(void)
|
||||
* -- should succeed.
|
||||
*/
|
||||
|
||||
#ifdef QAK
|
||||
if ( pass ) {
|
||||
|
||||
reset_entries();
|
||||
@ -15669,8 +15668,6 @@ check_unprotect_ro_dirty_err(void)
|
||||
entry_ptr->addr, (void *)entry_ptr,
|
||||
H5C__DIRTIED_FLAG, (size_t)0);
|
||||
|
||||
entry_ptr->is_dirty = TRUE;
|
||||
|
||||
if ( result >= 0 ) {
|
||||
|
||||
pass = FALSE;
|
||||
@ -15679,11 +15676,16 @@ check_unprotect_ro_dirty_err(void)
|
||||
}
|
||||
}
|
||||
|
||||
if ( pass ) {
|
||||
|
||||
unprotect_entry(cache_ptr, 0, 0, FALSE, H5C__NO_FLAGS_SET);
|
||||
|
||||
}
|
||||
|
||||
if ( pass ) {
|
||||
|
||||
takedown_cache(cache_ptr, FALSE, FALSE);
|
||||
}
|
||||
#endif /* QAK */
|
||||
|
||||
/* allocate a another cache, protect an entry read only twice, and
|
||||
* then unprotect it with the dirtied flag set. This should fail.
|
||||
|
Loading…
Reference in New Issue
Block a user