From bacbb6f22c19f3e3bd41401b0743eabb7f3f2e94 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Tue, 22 Jan 2008 12:10:07 -0500 Subject: setup task parameters --- src/mode_test.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mode_test.c b/src/mode_test.c index 811755e..8bdf21b 100644 --- a/src/mode_test.c +++ b/src/mode_test.c @@ -33,7 +33,7 @@ void do_stuff(void) j += prefix(); } -#define CALL(sc) do { ret = sc; if (ret == -1) {perror(" (!!) " #sc " failed: "); /*exit(1)*/;}} while (0); +#define CALL(sc) do { ret = sc; if (ret == -1) {perror(" (!!) " #sc " failed"); /*exit(1)*/;}} while (0); unsigned int job_no; @@ -57,10 +57,14 @@ int main(int argc, char** argv) CALL(get_job_no(&job_no)); - printf("my job_no is %u", job_no); + printf("my job_no is %u", job_no); CALL( task_mode(LITMUS_RT_TASK) ); + CALL( sporadic_global(3, 33) ); + + CALL( task_mode(LITMUS_RT_TASK) ); + next(); do_stuff(); -- cgit v1.2.2