summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2002-04-15 01:59:15 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2002-04-15 01:59:15 (GMT)
commite69cdafdadbf43284e24c542a3458a68fa5df9c9 (patch)
tree9422ef6fcbc0431eff456c5c8abb50be6a0a480c /test
parent5fa5ec75e02032d19a06ad8ac66a8a5f9b28817a (diff)
downloadhdf5-e69cdafdadbf43284e24c542a3458a68fa5df9c9.zip
hdf5-e69cdafdadbf43284e24c542a3458a68fa5df9c9.tar.gz
hdf5-e69cdafdadbf43284e24c542a3458a68fa5df9c9.tar.bz2
[svn-r5185] Purpose:
Bug fix Description: The H5_MALLOC_WORKS macro is not used in v1.4. Removed the test added. Platforms tested: eirene
Diffstat (limited to 'test')
-rw-r--r--test/tconfig.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/test/tconfig.c b/test/tconfig.c
index 50e1b7f..97e93e7 100644
--- a/test/tconfig.c
+++ b/test/tconfig.c
@@ -35,7 +35,6 @@
/* local routine prototypes */
void test_config_ctypes(void);
-void test_config_malloc(void);
/*-------------------------------------------------------------------------
@@ -58,7 +57,6 @@ test_configure(void)
/* Output message about test being performed */
MESSAGE(5, ("Testing configure definitions\n"));
test_config_ctypes();
- test_config_malloc();
}
@@ -183,42 +181,3 @@ test_config_ctypes(void)
#endif
}
-
-
-/*-------------------------------------------------------------------------
- * Function: test_config_malloc
- *
- * Purpose: test C language malloc function
- *
- * Return: none (error is fed back via global variable num_errs)
- *
- * Programmer: Albert Cheng
- * April 13, 2002
- *
- * Modifications:
- *
- *-------------------------------------------------------------------------
- */
-void
-test_config_malloc(void)
-{
- char *pt;
- size_t n;
-
- /* verify H5_MALLOC_WORKS (malloc zero byte) macros */
- pt = malloc(0);
-
-#ifdef H5_MALLOC_WORKS
- if (pt==NULL){
- print_func("Error verifying H5_MALLOC_WORKS: "
- "expected non-NULL, got NULL\n");
- num_errs++;
- }
-#else
- if (pt!=NULL){
- print_func("Error verifying H5_MALLOC_WORKS: "
- "expected NULL, got non-NULL\n");
- num_errs++;
- }
-#endif
-}