aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/core_api.c7
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(), &params) ); 36 SYSCALL_FAILS( EINVAL, set_rt_task_param(gettid(), &params) );
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(), &params) );
42
43 /* bad task */
44 params.relative_deadline = params.period;
40 SYSCALL_FAILS( EINVAL, set_rt_task_param(-1, &params) ); 45 SYSCALL_FAILS( EINVAL, set_rt_task_param(-1, &params) );
41 46
42 47