diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2009-09-10 19:33:12 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2009-09-10 19:33:12 (GMT) |
commit | 0b3fbf90899f97a7817779c106e171b89f19a042 (patch) | |
tree | 5bd630b6ead0b1fefe5b82a7db968c704b4614cc /test/testhdf5.h | |
parent | d5c362618144381b3d2cb8030b6cd75d75bbe1bf (diff) | |
download | hdf5-0b3fbf90899f97a7817779c106e171b89f19a042.zip hdf5-0b3fbf90899f97a7817779c106e171b89f19a042.tar.gz hdf5-0b3fbf90899f97a7817779c106e171b89f19a042.tar.bz2 |
[svn-r17462] Description:
Bring r17461 from trunk to 1.8 branch:
Fix a few more problems when the user block is not aligned properly.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
(h5committested on trunk)
Diffstat (limited to 'test/testhdf5.h')
-rw-r--r-- | test/testhdf5.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/testhdf5.h b/test/testhdf5.h index ed8b049..8ed7779 100644 --- a/test/testhdf5.h +++ b/test/testhdf5.h @@ -82,6 +82,20 @@ } \ } while(0) +/* Used to make certain a (non-'long' type's) return value _is_ a value */ +#define VERIFY_TYPE(_x, _val, _type, _format, where) do { \ + _type __x = (_type)_x, __val = (_type)_val; \ + if(GetTestVerbosity() >= VERBO_HI) { \ + print_func(" Call to routine: %15s at line %4d in %s had value " \ + _format " \n", (where), (int)__LINE__, __FILE__, __x); \ + } \ + if((__x) != (__val)) { \ + TestErrPrintf("*** UNEXPECTED VALUE from %s should be " _format ", but is " _format " at line %4d " \ + "in %s\n", (where), __val, __x, (int)__LINE__, __FILE__); \ + H5Eprint2(H5E_DEFAULT, stdout); \ + } \ +} while(0) + /* Used to make certain a string return value _is_ a value */ #define VERIFY_STR(x, val, where) do { \ if (GetTestVerbosity()>=VERBO_HI) { \ |