]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/kmp-test.c
ucw. docs: document single-line doc. comments
[libucw.git] / ucw / kmp-test.c
index 4e8e3ca88255a617e19d8f0d609149564b93f3ed..038c6e751c2cfa230383fb7de448acf103313e07 100644 (file)
@@ -9,7 +9,7 @@
 #include <string.h>
 
 #if 0
-#define TRACE(x...) do{log(L_DEBUG, x);}while(0)
+#define TRACE(x...) do{msg(L_DEBUG, x);}while(0)
 #else
 #define TRACE(x...) do{}while(0)
 #endif
@@ -50,6 +50,8 @@ test1(void)
   kmp1_cleanup(&kmp);
 }
 
+#ifdef CONFIG_CHARSET          /* This one depends on libcharset */
+
 /* TEST2 - various tracing */
 
 #define KMP_PREFIX(x) kmp2_##x
@@ -89,6 +91,8 @@ test2(void)
   kmp2_cleanup(&kmp);
 }
 
+#endif
+
 /* TEST3 - random tests */
 
 #define KMP_PREFIX(x) kmp3_##x
@@ -199,7 +203,9 @@ int
 main(void)
 {
   test1();
+#ifdef CONFIG_CHARSET
   test2();
+#endif
   test3();
   test4();
   return 0;