diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2010-02-09 22:32:28 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2010-02-09 22:32:28 (GMT) |
commit | a79ba5b13561488c2a5f34efab61a21e9d22b40e (patch) | |
tree | b7bf6c03bace90e984d4f9ce7aed9d3c5daca31b /test/testhdf5.h | |
parent | f091546b6aea4eb5bad1ea7bcab1880b36e1034a (diff) | |
download | hdf5-a79ba5b13561488c2a5f34efab61a21e9d22b40e.zip hdf5-a79ba5b13561488c2a5f34efab61a21e9d22b40e.tar.gz hdf5-a79ba5b13561488c2a5f34efab61a21e9d22b40e.tar.bz2 |
[svn-r18224] Description:
Bring revisions from Coverity session from hdf5_1_8_coverity branch to
trunk:
r18214:
Issue 423: cache_ptr was not initialized. if global 'pass' was false,
cache_ptr could be used. Extended scope of if(pass) block to include whole
function-flush_cache().
r18215:
Fix coverity item 317. Removed unreachable code in H5B2_hdr_alloc.
r18216:
Fixed Coverity issues 57 & 67. Checked oid_count > 0 before memory allocation
and oid_list != NULL before dereferencing.
Tested on:
Mac OS X/32 10.6.2 (amazon) w/debug & production
(daily tested on Coverity branch already)
Diffstat (limited to 'test/testhdf5.h')
-rw-r--r-- | test/testhdf5.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/testhdf5.h b/test/testhdf5.h index 3aefa0c..149b4c8 100644 --- a/test/testhdf5.h +++ b/test/testhdf5.h @@ -127,6 +127,15 @@ /* Used to document process through a test */ #define MESSAGE(V,A) {if (HDGetTestVerbosity()>(V)) print_func A;} +/* Used to indicate an error that is complex to check for */ +#define ERROR(where) do { \ + if(VERBOSE_HI) \ + print_func(" Call to routine: %15s at line %4d in %s returned " \ + "invalid result\n", where, (int)__LINE__, __FILE__); \ + TestErrPrintf("*** UNEXPECTED RESULT from %s at line %4d in %s\n" \ + where, (int)__LINE__, __FILE__); \ +} while(0) + /* definitions for command strings */ #define VERBOSITY_STR "Verbosity" #define SKIP_STR "Skip" |