diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2015-03-09 00:41:54 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2015-03-09 00:41:54 (GMT) |
commit | 2a4ea9b24e5d28598b627fca39fb42a9baedfaa3 (patch) | |
tree | 5952db2c3be4eba3007958ccc98942cd255f776f /test/testhdf5.h | |
parent | 63bd09ec8bb62e31b7ca52ce4c36d9bfd143c555 (diff) | |
download | hdf5-2a4ea9b24e5d28598b627fca39fb42a9baedfaa3.zip hdf5-2a4ea9b24e5d28598b627fca39fb42a9baedfaa3.tar.gz hdf5-2a4ea9b24e5d28598b627fca39fb42a9baedfaa3.tar.bz2 |
[svn-r26392] Reinstates r26327-8, which had been reverted due to failures on
Solaris and OS X.
Added public API functions that expose the C library's memory allocator
for use in filter functions that need to allocate or resize buffers.
Intended for use with filter plugins, particularly on Windows, where C
runtime (CRT) issues can cause problems.
Fixes: HDFFV-9100
Tested on: h5committest + OS X (quail) + Solaris (emu)
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; \ |