aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2012-08-01 03:24:33 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2012-08-01 03:24:33 -0400
commite906a17d957e9197c9e41520308baa295b827a54 (patch)
treef719d4eba29b43cd21cf4b179ba527b115783755
parent92403908792f38bf4f420ea2a552bf73702ee681 (diff)
test case: reject infeasible densities2012.2archive/unc-master-3.0
Add a test that makes sure that the kernel does indeed not accept infeasible densities.
-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