--- libaitsched/example/test_time.c 2012/08/08 08:25:39 1.6 +++ libaitsched/example/test_time.c 2012/08/08 23:04:41 1.7 @@ -21,7 +21,7 @@ void *event(sched_task_t *arg) void *regular(sched_task_t *arg) { - printf("Task::\n"); + printf("Task(%lu):: %s\n", TASK_VAL(arg), (char*) TASK_ARG(arg)); fflush(stdout); return NULL; } @@ -139,7 +139,19 @@ main(int argc, char **argv) return 2; } - if (!schedTask(root, regular, "piuk", 1111, NULL, 0)) { + if (!schedTask(root, regular, "piuk", 11, NULL, 0)) { + printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); + return 3; + } + if (!schedTask(root, regular, "piuk", 1, NULL, 0)) { + printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); + return 3; + } + if (!schedTask(root, regular, "piuk", 0, NULL, 0)) { + printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); + return 3; + } + if (!schedTask(root, regular, "piuk", 1000001, NULL, 0)) { printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); return 3; }