summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-01-04 10:21:53 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-01-04 10:23:19 +0100
commit07d4e7691313fa664e916d6591a25aed4037b53f (patch)
tree9d62a93992db32863bbfeb45f9fd8c1238ff0b40
parentbsp/raspberrypi: Move assignment outside if-condition (diff)
downloadrtems-07d4e7691313fa664e916d6591a25aed4037b53f.tar.bz2
sptests/sp07: Fix test case
Fix things broken by commit d5154d0f6a04f3b7ed59d9a09038576fe2640756. Update #2493.
-rw-r--r--testsuites/sptests/sp07/task1.c8
-rw-r--r--testsuites/sptests/sp07/task2.c12
2 files changed, 7 insertions, 13 deletions
diff --git a/testsuites/sptests/sp07/task1.c b/testsuites/sptests/sp07/task1.c
index c03bea24b4..25831afef6 100644
--- a/testsuites/sptests/sp07/task1.c
+++ b/testsuites/sptests/sp07/task1.c
@@ -13,11 +13,6 @@
#include "system.h"
-/*
- * We know this is deprecated and don't want a warning on every BSP built.
- */
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-
rtems_task Task_1(
rtems_task_argument argument
)
@@ -25,9 +20,6 @@ rtems_task Task_1(
rtems_status_code status;
rtems_task_priority the_priority;
rtems_task_priority previous_priority;
- rtems_id my_id;
-
- my_id = rtems_task_self();
rtems_test_pause();
diff --git a/testsuites/sptests/sp07/task2.c b/testsuites/sptests/sp07/task2.c
index 4254a94710..7baee1b3b0 100644
--- a/testsuites/sptests/sp07/task2.c
+++ b/testsuites/sptests/sp07/task2.c
@@ -13,11 +13,6 @@
#include "system.h"
-/*
- * We know this is deprecated and don't want a warning on every BSP built.
- */
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-
rtems_task Task_2(
rtems_task_argument argument
)
@@ -26,6 +21,13 @@ rtems_task Task_2(
rtems_task_priority the_priority;
rtems_task_priority previous_priority;
+ status = rtems_task_set_priority(
+ RTEMS_SELF,
+ RTEMS_CURRENT_PRIORITY,
+ &the_priority
+ );
+ directive_failed( status, "rtems_task_set_priority" );
+
while( FOREVER ) {
if ( --the_priority == 0 ) {
puts( "TA2 - rtems_task_suspend - suspend TA1" );