[PATCH 19/19] spcbssched03/tasks_periodic.c: Fixed now used before set warning

Joel Sherrill joel.sherrill at oarcorp.com
Mon Mar 16 20:29:36 UTC 2015


---
 testsuites/sptests/spcbssched03/tasks_periodic.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testsuites/sptests/spcbssched03/tasks_periodic.c b/testsuites/sptests/spcbssched03/tasks_periodic.c
index 37b15b4..aa68228 100644
--- a/testsuites/sptests/spcbssched03/tasks_periodic.c
+++ b/testsuites/sptests/spcbssched03/tasks_periodic.c
@@ -104,6 +104,7 @@ rtems_task Tasks_Periodic(
 
     /* Specific scenario for task 4: tries to exceed announced budget,
        the task priority has to be pulled down to background. */
+    now = rtems_clock_get_ticks_since_boot();
     if ( !scenario_done && argument == 4 && now >= 200 ) {
       Violating_task[ argument ] = 1;
       scenario_done = 1;
-- 
1.9.3




More information about the devel mailing list