diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-02-26 10:42:43 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-02-26 10:42:43 -0500 |
commit | 2ace28d0725a47529a18ebac4c7c75bcf61446b9 (patch) | |
tree | 75528e056a9ca3468165d7c9b7fa112dab3d6e83 /tests | |
parent | e3098fcce693f90fee6464233c075fbaddc04b07 (diff) |
Add job control test case.
Passes.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core_api.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/core_api.c b/tests/core_api.c index 84d4a18..d858f1f 100644 --- a/tests/core_api.c +++ b/tests/core_api.c | |||
@@ -37,3 +37,15 @@ TESTCASE(set_rt_task_param_invalid_params, ALL, | |||
37 | /* now try correct params */ | 37 | /* now try correct params */ |
38 | SYSCALL( set_rt_task_param(gettid(), ¶ms) ); | 38 | SYSCALL( set_rt_task_param(gettid(), ¶ms) ); |
39 | } | 39 | } |
40 | |||
41 | TESTCASE(job_control_non_rt, ALL, | ||
42 | "reject job control for non-rt tasks") | ||
43 | { | ||
44 | unsigned int job_no; | ||
45 | |||
46 | SYSCALL_FAILS( EINVAL, sleep_next_period() ); | ||
47 | |||
48 | SYSCALL_FAILS( EINVAL, wait_for_job_release(0) ); | ||
49 | |||
50 | SYSCALL_FAILS( EPERM, get_job_no(&job_no) ); | ||
51 | } | ||