From 2ace28d0725a47529a18ebac4c7c75bcf61446b9 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Fri, 26 Feb 2010 10:42:43 -0500 Subject: Add job control test case. Passes. --- tests/core_api.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests') 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, /* now try correct params */ SYSCALL( set_rt_task_param(gettid(), ¶ms) ); } + +TESTCASE(job_control_non_rt, ALL, + "reject job control for non-rt tasks") +{ + unsigned int job_no; + + SYSCALL_FAILS( EINVAL, sleep_next_period() ); + + SYSCALL_FAILS( EINVAL, wait_for_job_release(0) ); + + SYSCALL_FAILS( EPERM, get_job_no(&job_no) ); +} -- cgit v1.2.2