projects
/
runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Created SILC Runtime Toolkit git repository Part II.
[runtime.git]
/
lib
/
silcutil
/
tests
/
test_silctimer.c
diff --git
a/lib/silcutil/tests/test_silctimer.c
b/lib/silcutil/tests/test_silctimer.c
index e0646cf7bd78a5567113121352014328456600be..f23957565e45d1e73f9d7d54cab9997a84dfa672 100644
(file)
--- a/
lib/silcutil/tests/test_silctimer.c
+++ b/
lib/silcutil/tests/test_silctimer.c
@@
-1,6
+1,6
@@
/* SilcTimer tests */
/* SilcTimer tests */
-#include "silc.h"
+#include "silc
runtime
.h"
SilcSchedule schedule;
SilcTimerStruct timer;
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_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_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);
success = TRUE;
silc_schedule_stop(schedule);
@@
-69,7
+69,7
@@
int main(int argc, char **argv)
silc_log_set_debug_string("*timer*,*errno*");
}
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;
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");
SILC_LOG_DEBUG(("Testing was %s", success ? "SUCCESS" : "FAILURE"));
fprintf(stderr, "Testing was %s\n", success ? "SUCCESS" : "FAILURE");
- return success;
+ return
!
success;
}
}