diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2010-05-07 02:08:39 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2010-05-07 02:08:39 (GMT) |
commit | ea30da9e877ff6842a08d2d204f2191cccab0a1f (patch) | |
tree | 1df18043fb5929886a10be5a65bd2caf17c14dba | |
parent | e053c6f84f6ee6f1fea6cbe74269467cce94e4d5 (diff) | |
download | hdf5-ea30da9e877ff6842a08d2d204f2191cccab0a1f.zip hdf5-ea30da9e877ff6842a08d2d204f2191cccab0a1f.tar.gz hdf5-ea30da9e877ff6842a08d2d204f2191cccab0a1f.tar.bz2 |
[svn-r18739] Description:
Correct test for resizing protected entries to check results correctly.
Tested on:
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
(h5committest not required on this branch)
-rw-r--r-- | test/cache.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/cache.c b/test/cache.c index 2836dcc..18e6425 100644 --- a/test/cache.c +++ b/test/cache.c @@ -17262,11 +17262,11 @@ check_resize_entry_errs(void) pass = TRUE; /* Allocate a cache, protect an entry, and then call - * H5C_resize_entry() to resize it -- this should fail. + * H5C_resize_entry() to resize it -- this should succeed. * * Unprotect the the entry with the pinned flag, and then call * H5C_resize_entry() again with new size of zero. - * This should fail too. + * This should fail. * * Finally, unpin the entry and destroy the cache. * This should succeed. @@ -17289,11 +17289,11 @@ check_resize_entry_errs(void) result = H5C_resize_entry((void *)entry_ptr, (size_t)1); - if ( result > 0 ) { + if ( result < 0 ) { pass = FALSE; failure_mssg = - "Call to H5C_resize_entry on a protected entry succeeded.\n"; + "Call to H5C_resize_entry on a protected entry failed.\n"; } else { @@ -17306,7 +17306,7 @@ check_resize_entry_errs(void) result = H5C_resize_entry((void *)entry_ptr, (size_t)0); - if ( result > 0 ) { + if ( result >= 0 ) { pass = FALSE; failure_mssg = |