summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulercbsgetexecutiontime.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-09-27 00:58:42 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-09-27 00:58:42 +0000
commita7d04d633323b4aa5e0d92778e849cbdf8276ec9 (patch)
treefbcb5071c90b970fa24f5b98bb77a7cc2638a8e2 /cpukit/score/src/schedulercbsgetexecutiontime.c
parent2011-09-27 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-a7d04d633323b4aa5e0d92778e849cbdf8276ec9.tar.bz2
2011-09-26 Petr Benes <benesp16@fel.cvut.cz>
PR 1923/testing * score/src/schedulercbsgetexecutiontime.c: Improve coverage.
Diffstat (limited to 'cpukit/score/src/schedulercbsgetexecutiontime.c')
-rw-r--r--cpukit/score/src/schedulercbsgetexecutiontime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/schedulercbsgetexecutiontime.c b/cpukit/score/src/schedulercbsgetexecutiontime.c
index b8d92ada30..2461d76816 100644
--- a/cpukit/score/src/schedulercbsgetexecutiontime.c
+++ b/cpukit/score/src/schedulercbsgetexecutiontime.c
@@ -31,7 +31,7 @@ int _Scheduler_CBS_Get_execution_time (
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
return SCHEDULER_CBS_ERROR_NOSERVER;
- if ( !_Scheduler_CBS_Server_list[server_id]->task_id ) {
+ if ( _Scheduler_CBS_Server_list[server_id]->task_id == -1 ) {
*exec_time = 0;
return SCHEDULER_CBS_OK;
}