diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2015-04-01 23:29:24 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2015-04-01 23:29:24 (GMT) |
commit | 6986211d6584792ca48cb2469d0e779c445638d2 (patch) | |
tree | 6c2c9158d8c1e69d2c3e338192da0cb7c8d58182 /test/testhdf5.h | |
parent | ad4154cdc89ddf15691dbfe1c609898ef484808b (diff) | |
download | hdf5-6986211d6584792ca48cb2469d0e779c445638d2.zip hdf5-6986211d6584792ca48cb2469d0e779c445638d2.tar.gz hdf5-6986211d6584792ca48cb2469d0e779c445638d2.tar.bz2 |
[svn-r26703] Merge of r26392 from trunk.
Adds new memory allocation functions that use the library's
memory allocator. Intended for use with third-party filter
code.
Tested on: h5committest, Solaris (emu), OS X (quail)
Note: emu fails with the existing Inf/inf case problem in
h5dump but no other tests fail.
Diffstat (limited to 'test/testhdf5.h')
-rw-r--r-- | test/testhdf5.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/testhdf5.h b/test/testhdf5.h index 907fce9..62dadde 100644 --- a/test/testhdf5.h +++ b/test/testhdf5.h @@ -68,6 +68,18 @@ } \ } +#define CHECK_PTR_NULL(ret,where) { \ + if (VERBOSE_HI) { \ + print_func(" Call to routine: %15s at line %4d in %s returned %p\n", \ + (where), (int)__LINE__, __FILE__, (ret)); \ + } \ + if (ret) { \ + TestErrPrintf ("*** UNEXPECTED RETURN from %s is not NULL line %4d in %s\n", \ + (where), (int)__LINE__, __FILE__); \ + H5Eprint2(H5E_DEFAULT, stdout); \ + } \ +} + /* Used to make certain a return value _is_ a value */ #define VERIFY(_x, _val, where) do { \ long __x = (long)_x, __val = (long)_val; \ |