summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp07/task2.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/sp07/task2.c')
-rw-r--r--testsuites/sptests/sp07/task2.c12
1 files changed, 7 insertions, 5 deletions
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" );