aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2011-08-26 10:55:43 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2011-08-26 10:57:34 -0400
commitd691d4545dc0594bc4bf13c4c07eeeaf73c3b232 (patch)
treec2e1bc1c4577b4719f88b4b3554e43077fc21ae4
parented2742a29674222173147b73f223bc7be01e1eaf (diff)
tests: add valid budget_policy to rt_task parameters
Since set_rt_task_param() checks for wrong budget policies, make sure to specify a valid policy to avoid errors like the following. litmus: real-time task 3635 rejected because unsupported budget enforcement policy specified
-rw-r--r--tests/core_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/core_api.c b/tests/core_api.c
index 7487c1c..7f7a099 100644
--- a/tests/core_api.c
+++ b/tests/core_api.c
@@ -22,6 +22,7 @@ TESTCASE(set_rt_task_param_invalid_params, ALL,
22 params.period = 100; 22 params.period = 100;
23 params.phase = 0; 23 params.phase = 0;
24 params.cls = RT_CLASS_HARD; 24 params.cls = RT_CLASS_HARD;
25 params.budget_policy = NO_ENFORCEMENT;
25 26
26 /* over utilize */ 27 /* over utilize */
27 params.exec_cost = 110; 28 params.exec_cost = 110;