From e906a17d957e9197c9e41520308baa295b827a54 Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Wed, 1 Aug 2012 09:24:33 +0200 Subject: test case: reject infeasible densities Add a test that makes sure that the kernel does indeed not accept infeasible densities. --- tests/core_api.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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, params.cpu = -1; SYSCALL_FAILS( EINVAL, set_rt_task_param(gettid(), ¶ms) ); - /* bad task */ + /* infeasible density */ params.cpu = 0; + params.relative_deadline = 30; + SYSCALL_FAILS( EINVAL, set_rt_task_param(gettid(), ¶ms) ); + + /* bad task */ + params.relative_deadline = params.period; SYSCALL_FAILS( EINVAL, set_rt_task_param(-1, ¶ms) ); -- cgit v1.2.2