/* SilcSchedule tests */
-#include "silc.h"
+#include "silcruntime.h"
typedef void (*Callback)(void *context);
SILC_TASK_CALLBACK(cont2)
{
#ifdef SILC_DEBUG
- silc_schedule_stats(schedule);
+// silc_schedule_stats(schedule);
#endif /* SILC_DEBUG */
SILC_LOG_DEBUG(("Adding %d fd tasks", NUM_FTASK - 10));
for (i = 0; i < NUM_FTASK - 10; i++)
silc_schedule_task_add_fd(schedule, i + 5, foo, (void *)(i + 5));
#endif
+
+ silc_schedule_event_signal(schedule, "interrupted", NULL, schedule);
}
SILC_TASK_CALLBACK(cont)
int i;
#ifdef SILC_DEBUG
- silc_schedule_stats(schedule);
+// silc_schedule_stats(schedule);
#endif /* SILC_DEBUG */
SILC_LOG_DEBUG(("Adding %d timeout tasks", NUM_TTASK / 3));
SILC_LOG_DEBUG(("Testing was %s", success ? "SUCCESS" : "FAILURE"));
fprintf(stderr, "Testing was %s\n", success ? "SUCCESS" : "FAILURE");
- return success;
+ return !success;
}