diff options
| author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-01-22 12:10:07 -0500 |
|---|---|---|
| committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-01-22 12:10:07 -0500 |
| commit | bacbb6f22c19f3e3bd41401b0743eabb7f3f2e94 (patch) | |
| tree | ca4a88e2a578605587f7f055c4eaa81404a338c9 | |
| parent | cec611cae97e4a7cfd60bb3bda2f66cd601f4011 (diff) | |
setup task parameters
| -rw-r--r-- | src/mode_test.c | 8 |
1 files changed, 6 insertions, 2 deletions
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) | |||
| 33 | j += prefix(); | 33 | j += prefix(); |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | #define CALL(sc) do { ret = sc; if (ret == -1) {perror(" (!!) " #sc " failed: "); /*exit(1)*/;}} while (0); | 36 | #define CALL(sc) do { ret = sc; if (ret == -1) {perror(" (!!) " #sc " failed"); /*exit(1)*/;}} while (0); |
| 37 | 37 | ||
| 38 | unsigned int job_no; | 38 | unsigned int job_no; |
| 39 | 39 | ||
| @@ -57,10 +57,14 @@ int main(int argc, char** argv) | |||
| 57 | 57 | ||
| 58 | 58 | ||
| 59 | CALL(get_job_no(&job_no)); | 59 | CALL(get_job_no(&job_no)); |
| 60 | printf("my job_no is %u", job_no); | 60 | printf("my job_no is %u", job_no); |
| 61 | 61 | ||
| 62 | CALL( task_mode(LITMUS_RT_TASK) ); | 62 | CALL( task_mode(LITMUS_RT_TASK) ); |
| 63 | 63 | ||
| 64 | CALL( sporadic_global(3, 33) ); | ||
| 65 | |||
| 66 | CALL( task_mode(LITMUS_RT_TASK) ); | ||
| 67 | |||
| 64 | next(); | 68 | next(); |
| 65 | do_stuff(); | 69 | do_stuff(); |
| 66 | 70 | ||
