Created SILC Runtime Toolkit git repository Part II.
[runtime.git] / lib / silcutil / tests / test_silctimer.c
index e0646cf7bd78a5567113121352014328456600be..f23957565e45d1e73f9d7d54cab9997a84dfa672 100644 (file)
@@ -1,6 +1,6 @@
 /* SilcTimer tests */
 
-#include "silc.h"
+#include "silcruntime.h"
 
 SilcSchedule schedule;
 SilcTimerStruct timer;
@@ -40,9 +40,9 @@ SILC_TASK_CALLBACK(check)
     silc_timer_start_time(&timer, &st);
     silc_timer_value_time(&timer, &t);
     silc_time_universal_string(&st, ts, sizeof(ts));
-    SILC_LOG_DEBUG(("Start time: %s", ts));    
+    SILC_LOG_DEBUG(("Start time: %s", ts));
     silc_time_universal_string(&t, ts, sizeof(ts));
-    SILC_LOG_DEBUG(("End time: %s", ts));    
+    SILC_LOG_DEBUG(("End time: %s", ts));
 
     success = TRUE;
     silc_schedule_stop(schedule);
@@ -69,7 +69,7 @@ int main(int argc, char **argv)
     silc_log_set_debug_string("*timer*,*errno*");
   }
 
-  schedule = silc_schedule_init(0, NULL, NULL);
+  schedule = silc_schedule_init(0, NULL, NULL, NULL);
   if (!schedule)
     goto err;
 
@@ -90,5 +90,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;
 }