Changeset 07d4e76 in rtems


Ignore:
Timestamp:
Jan 4, 2016, 9:21:53 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
a061f9d
Parents:
4200a36a
git-author:
Sebastian Huber <sebastian.huber@…> (01/04/16 09:21:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/04/16 09:23:19)
Message:

sptests/sp07: Fix test case

Fix things broken by commit d5154d0f6a04f3b7ed59d9a09038576fe2640756.

Update #2493.

Location:
testsuites/sptests/sp07
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/sp07/task1.c

    r4200a36a r07d4e76  
    1414#include "system.h"
    1515
    16 /*
    17  * We know this is deprecated and don't want a warning on every BSP built.
    18  */
    19 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    20 
    2116rtems_task Task_1(
    2217  rtems_task_argument argument
     
    2621  rtems_task_priority the_priority;
    2722  rtems_task_priority previous_priority;
    28   rtems_id            my_id;
    29 
    30   my_id = rtems_task_self();
    3123
    3224  rtems_test_pause();
  • testsuites/sptests/sp07/task2.c

    r4200a36a r07d4e76  
    1414#include "system.h"
    1515
    16 /*
    17  * We know this is deprecated and don't want a warning on every BSP built.
    18  */
    19 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    20 
    2116rtems_task Task_2(
    2217  rtems_task_argument argument
     
    2621  rtems_task_priority the_priority;
    2722  rtems_task_priority previous_priority;
     23
     24  status = rtems_task_set_priority(
     25    RTEMS_SELF,
     26    RTEMS_CURRENT_PRIORITY,
     27    &the_priority
     28  );
     29  directive_failed( status, "rtems_task_set_priority" );
    2830
    2931  while( FOREVER ) {
Note: See TracChangeset for help on using the changeset viewer.