--- libaitsched/example/test_time.c 2012/05/30 08:34:43 1.2.4.1 +++ libaitsched/example/test_time.c 2012/05/30 08:51:49 1.2.4.2 @@ -89,8 +89,26 @@ main(int argc, char **argv) return 4; } - ts.tv_sec = 11; if (!schedAlarm(root, alarmz, (void*) ts.tv_sec, ts, NULL, 0)) { + printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); + return 5; + } else { + ts.tv_sec = 3; + ts.tv_nsec = 500000000; + } + + if (!schedAlarm(root, alarmz, (void*) ts.tv_sec, ts, (void*) 1, 0)) { + printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); + return 5; + } + if (!schedAlarm(root, alarmz, (void*) ts.tv_sec, ts, (void*) 2, 0)) { + printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); + return 5; + } else { + ts.tv_sec = 0; + ts.tv_nsec = 700000000; + } + if (!schedAlarm(root, alarmz, (void*) ts.tv_sec, ts, (void*) 3, 0)) { printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); return 5; }