diff options
-rw-r--r-- | tests/core_api.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/core_api.c b/tests/core_api.c index c5bbb5a..ca41ee4 100644 --- a/tests/core_api.c +++ b/tests/core_api.c | |||
@@ -35,8 +35,13 @@ TESTCASE(set_rt_task_param_invalid_params, ALL, | |||
35 | params.cpu = -1; | 35 | params.cpu = -1; |
36 | SYSCALL_FAILS( EINVAL, set_rt_task_param(gettid(), ¶ms) ); | 36 | SYSCALL_FAILS( EINVAL, set_rt_task_param(gettid(), ¶ms) ); |
37 | 37 | ||
38 | /* bad task */ | 38 | /* infeasible density */ |
39 | params.cpu = 0; | 39 | params.cpu = 0; |
40 | params.relative_deadline = 30; | ||
41 | SYSCALL_FAILS( EINVAL, set_rt_task_param(gettid(), ¶ms) ); | ||
42 | |||
43 | /* bad task */ | ||
44 | params.relative_deadline = params.period; | ||
40 | SYSCALL_FAILS( EINVAL, set_rt_task_param(-1, ¶ms) ); | 45 | SYSCALL_FAILS( EINVAL, set_rt_task_param(-1, ¶ms) ); |
41 | 46 | ||
42 | 47 | ||