diff options
| author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-08-01 03:24:33 -0400 |
|---|---|---|
| committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-08-01 03:24:33 -0400 |
| commit | e906a17d957e9197c9e41520308baa295b827a54 (patch) | |
| tree | f719d4eba29b43cd21cf4b179ba527b115783755 | |
| parent | 92403908792f38bf4f420ea2a552bf73702ee681 (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.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 | ||
