From ea30da9e877ff6842a08d2d204f2191cccab0a1f Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Thu, 6 May 2010 21:08:39 -0500 Subject: [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) --- test/cache.c | 10 +++++----- 1 file 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 = -- cgit v0.12