summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2015-02-28 17:00:03 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2015-02-28 17:00:03 (GMT)
commitac290b5e45412a0a93fde620490d703c773d27d4 (patch)
tree5f092da8f14390a154ae169a7b1b82e526f665ee /test
parent7462a7ef1c3542b8812c8da86e79b15ce22d21cb (diff)
downloadhdf5-ac290b5e45412a0a93fde620490d703c773d27d4.zip
hdf5-ac290b5e45412a0a93fde620490d703c773d27d4.tar.gz
hdf5-ac290b5e45412a0a93fde620490d703c773d27d4.tar.bz2
[svn-r26331] Revert checking r 26327&8, which added new code and test that fails on solaris and macs.
Tested h5committest + emu and quail.
Diffstat (limited to 'test')
-rw-r--r--test/testhdf5.h12
-rw-r--r--test/tmisc.c68
2 files changed, 0 insertions, 80 deletions
diff --git a/test/testhdf5.h b/test/testhdf5.h
index 62dadde..907fce9 100644
--- a/test/testhdf5.h
+++ b/test/testhdf5.h
@@ -68,18 +68,6 @@
} \
}
-#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; \
diff --git a/test/tmisc.c b/test/tmisc.c
index 31d15ac..cac6b04 100644
--- a/test/tmisc.c
+++ b/test/tmisc.c
@@ -5304,73 +5304,6 @@ test_misc31(void)
/****************************************************************
- *
- * test_misc32(): Simple test of filter memory allocation
- * functions.
- *
- ***************************************************************/
-static void
-test_misc32(void)
-{
- void *buffer;
- void *resized;
- size_t size;
-
- /* Output message about test being performed */
- MESSAGE(5, ("Edge case test of filter memory allocation functions\n"));
-
- /* Test that the filter memory allocation functions behave correctly
- * at edge cases.
- */
-
- /* FREE */
-
- /* Test freeing a NULL pointer.
- * No real confirmation check here, but Valgrind will confirm no
- * shenanigans.
- */
- buffer = NULL;
- H5free_memory(buffer);
-
- /* ALLOCATE */
-
- /* Size zero returns NULL.
- * Also checks that a size of zero and setting the buffer clear flag
- * to TRUE can be used together.
- *
- * Note that we have asserts in the code, so only check when NDEBUG
- * is defined.
- */
-#ifdef NDEBUG
- buffer = H5allocate_memory(0, FALSE);
- CHECK_PTR_NULL(buffer, "H5allocate_memory"); /*BAD*/
- buffer = H5allocate_memory(0, TRUE);
- CHECK_PTR_NULL(buffer, "H5allocate_memory"); /*BAD*/
-#endif /* NDEBUG */
-
- /* RESIZE */
-
- /* Size zero returns NULL. Valgrind will confirm buffer is freed. */
- size = 1024;
- buffer = H5allocate_memory(size, TRUE);
- resized = H5resize_memory(buffer, 0);
- CHECK_PTR_NULL(resized, "H5resize_memory");
-
- /* NULL input pointer returns new buffer */
- resized = H5resize_memory(NULL, 1024);
- CHECK_PTR(resized, "H5resize_memory");
- H5free_memory(resized);
-
- /* NULL input pointer and size zero returns NULL */
-#ifdef NDEBUG
- resized = H5resize_memory(NULL, 0);
- CHECK_PTR_NULL(resized, "H5resize_memory"); /*BAD*/
-#endif /* NDEBUG */
-
-} /* end test_misc32() */
-
-
-/****************************************************************
**
** test_misc(): Main misc. test routine.
**
@@ -5416,7 +5349,6 @@ test_misc(void)
test_misc29(); /* Test that speculative metadata reads are handled correctly */
test_misc30(); /* Exercise local heap loading bug where free lists were getting dropped */
test_misc31(); /* Test Reentering library through deprecated routines after H5close() */
- test_misc32(); /* Test filter memory allocation functions */
} /* test_misc() */