diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2010-02-09 22:39:43 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2010-02-09 22:39:43 (GMT) |
commit | c5c85080a7d1dcae35cffba922d88320a2475ec8 (patch) | |
tree | 64fe3bdcbe1216f26757a50c1811657a2fd05f0f /test/testhdf5.h | |
parent | cc1c7331a5f57b1d8beae65c257164e11060ebef (diff) | |
download | hdf5-c5c85080a7d1dcae35cffba922d88320a2475ec8.zip hdf5-c5c85080a7d1dcae35cffba922d88320a2475ec8.tar.gz hdf5-c5c85080a7d1dcae35cffba922d88320a2475ec8.tar.bz2 |
[svn-r18225] Description:
Bring r18244 from trunk to 1.8 branch:
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" |