Created SILC Runtime Toolkit git repository Part II.
[runtime.git] / lib / silcutil / tests / test_silcfdstream.c
index f69ce14bad3c46c3576a468115dbb2a6bcce023e..c3c3b99c431013e2351839d8cd6d87a8cfd3d535 100644 (file)
@@ -1,6 +1,6 @@
 /* SILC FD Stream tests */
 
-#include "silc.h"
+#include "silcruntime.h"
 
 SilcBool success = FALSE;
 SilcSchedule schedule;
@@ -199,11 +199,11 @@ 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("*fdstream*");
+    silc_log_set_debug_string("*fdstream*,*errno*");
   }
 
   SILC_LOG_DEBUG(("Allocating scheduler"));
-  schedule = silc_schedule_init(0, NULL, NULL);
+  schedule = silc_schedule_init(0, NULL, NULL, NULL);
   if (!schedule)
     goto err;
 
@@ -227,5 +227,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;
 }