aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2010-02-26 10:42:43 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2010-02-26 10:42:43 -0500
commit2ace28d0725a47529a18ebac4c7c75bcf61446b9 (patch)
tree75528e056a9ca3468165d7c9b7fa112dab3d6e83 /tests
parente3098fcce693f90fee6464233c075fbaddc04b07 (diff)
Add job control test case.
Passes.
Diffstat (limited to 'tests')
-rw-r--r--tests/core_api.c12
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(), &params) ); 38 SYSCALL( set_rt_task_param(gettid(), &params) );
39} 39}
40
41TESTCASE(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}