Created SILC Runtime Toolkit git repository Part II.
[runtime.git] / lib / silcutil / tests / test_silcmime.c
index e27f614f50a3407902826c5326b315dfd4538985..5cf38bd82a8f4791b15f6223f8d7b613cb68484d 100644 (file)
@@ -1,6 +1,6 @@
 /* SilcMime tests */
 
-#include "silc.h"
+#include "silcruntime.h"
 #include "silcmime.h"
 
 int main(int argc, char **argv)
@@ -19,10 +19,10 @@ int main(int argc, char **argv)
   if (argc > 1 && !strcmp(argv[1], "-d")) {
     silc_log_debug(TRUE);
     silc_log_debug_hexdump(TRUE);
-    silc_log_set_debug_string("*mime*");
+    silc_log_set_debug_string("*mime*,*errno*");
   }
 
-  /* 
+  /*
    * Simple MIME test
    */
   SILC_LOG_DEBUG(("Allocating MIME message context"));
@@ -279,5 +279,5 @@ int main(int argc, char **argv)
   SILC_LOG_DEBUG(("Testing was %s", success ? "SUCCESS" : "FAILURE"));
   fprintf(stderr, "Testing was %s\n", success ? "SUCCESS" : "FAILURE");
 
-  return success;
+  return !success;
 }