]> pd.if.org Git - pdclib/blobdiff - opt/dlmalloc/dlmalloc.c
Unit tests
[pdclib] / opt / dlmalloc / dlmalloc.c
index 32c3c35686d582443a7a2f3033936c7e87506207..183f08a59a14559d643b8514587737d0c58931d7 100644 (file)
@@ -516,6 +516,7 @@ MAX_RELEASE_CHECK_RATE   default: 4095 unless not HAVE_MMAP
   improvement at the expense of carrying around more memory.\r
 */\r
 \r
+#ifndef REGTEST\r
 #include "dlmalloc.h"\r
 \r
 /* Version identifier to allow people to support multiple versions */\r
@@ -6251,3 +6252,15 @@ History:
          structure of old version,  but most details differ.)\r
 \r
 */\r
+#endif\r
+\r
+#ifdef TEST\r
+#include <_PDCLIB_test.h>\r
+\r
+/* TODO: TEST ME */\r
+int main( void )\r
+{\r
+    return TEST_RESULTS;\r
+}\r
+\r
+#endif
\ No newline at end of file