]> mj.ucw.cz Git - libucw.git/blobdiff - lib/hash-test.c
One more round of changes to the assert code -- I didn't realize that CONFIG_DEBUG
[libucw.git] / lib / hash-test.c
index 2f83561352de834bb4fcbcf49c6e390b3f28830d..ae1e6f8649c8f9c9b9211474e35f9b60e4f57bfd 100644 (file)
@@ -69,7 +69,7 @@ static void test(void)
   log(L_INFO, "OK");
 }
 
-#elif 0
+#elif 1
 
 /* TEST 2: external strings */
 
@@ -82,6 +82,7 @@ struct node {
 #define HASH_PREFIX(x) test_##x
 #define HASH_KEY_STRING key
 #define HASH_NOCASE
+#define HASH_AUTO_POOL 4096
 
 #define HASH_WANT_FIND
 #define HASH_WANT_NEW
@@ -97,7 +98,7 @@ static void test(void)
     {
       char x[32];
       sprintf(x, "abc%d", i);
-      test_new(stralloc(x));
+      test_new(xstrdup(x));
     }
   for (i=0; i<1024; i++)
     {
@@ -115,7 +116,7 @@ static void test(void)
 
 /* TEST 3: internal strings + pools */
 
-#include "lib/pools.h"
+#include "lib/mempool.h"
 
 static struct mempool *pool;