Created SILC Runtime Toolkit git repository Part II.
[runtime.git] / lib / silcutil / tests / test_silcfdstream.c
index dfc231733b92040517a864e970f4f1dac5c205b6..c3c3b99c431013e2351839d8cd6d87a8cfd3d535 100644 (file)
@@ -1,6 +1,6 @@
 /* SILC FD Stream tests */
 
-#include "silc.h"
+#include "silcruntime.h"
 
 SilcBool success = FALSE;
 SilcSchedule schedule;
@@ -203,7 +203,7 @@ int main(int argc, char **argv)
   }
 
   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;
 }