Changeset 979bda9 in rtems


Ignore:
Timestamp:
Mar 14, 2015, 3:48:00 PM (4 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
8164ebd
Parents:
0e6f915c
git-author:
Joel Sherrill <joel.sherrill@…> (03/14/15 15:48:00)
git-committer:
Joel Sherrill <joel.sherrill@…> (03/17/15 15:05:04)
Message:

tm07: Split some code into new spnotepad02.

Use of deprecated notepads in sp07 needs further work.

Updates #2305.

Location:
testsuites/sptests
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/Makefile.am

    r0e6f915c r979bda9  
    1313    sp70 sp71 sp72 sp73 sp74 sp75 sp76 sp77 sp2038 \
    1414    spassoc01 spchain spclockget spcoverage spobjgetnext \
    15     spnotepad01 spprintk spprivenv01 sprbtree01 spsize spstkalloc \
     15    spnotepad01 spnotepad02 spprintk spprivenv01 sprbtree01 spsize spstkalloc \
    1616    spstkalloc02 spthreadq01 spwatchdog spwkspace \
    1717    sperror01 sperror02 sperror03 \
  • testsuites/sptests/configure.ac

    r0e6f915c r979bda9  
    210210spmsgq_err02/Makefile
    211211spnotepad01/Makefile
     212spnotepad02/Makefile
    212213spnsext01/Makefile
    213214spobjgetnext/Makefile
  • testsuites/sptests/sp07/init.c

    r0e6f915c r979bda9  
    211211  assert_extension_counts( &Task_restarted[ 0 ], 0x0 );
    212212
    213   status = rtems_task_set_note( rtems_task_self(), RTEMS_NOTEPAD_4, 32 );
    214   directive_failed( status, "task_set_node of Self id" );
    215   printf( "INIT - rtems_task_set_note - set my (id) RTEMS_NOTEPAD_4 " );
    216   puts  ( "to TA1's priority: 04" );
    217 
    218   status = rtems_task_set_note( RTEMS_SELF, RTEMS_NOTEPAD_4, 32 );
    219   directive_failed( status, "task_set_node of Self 0" );
    220   printf( "INIT - rtems_task_set_note - set my (SELF) RTEMS_NOTEPAD_4 " );
    221   puts  ( "to TA1's priority: 04" );
    222 
    223   status = rtems_task_set_note( Task_id[ 1 ], RTEMS_NOTEPAD_8, 4 );
    224   directive_failed( status, "task_set_node of TA1" );
    225   printf( "INIT - rtems_task_set_note - set TA1's RTEMS_NOTEPAD_8 " );
    226   puts  ( "to TA1's priority: 04" );
    227 
    228   status = rtems_task_set_note( Task_id[ 2 ], RTEMS_NOTEPAD_8, 4 );
    229   directive_failed( status, "task_set_node of TA2" );
    230   printf( "INIT - rtems_task_set_note - set TA2's RTEMS_NOTEPAD_8 " );
    231   puts  ( "to TA2's priority: 04");
     213 /*
     214  * We know this is deprecated and don't want a warning on every BSP built.
     215  */
     216  #pragma GCC diagnostic push
     217  #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
     218
     219    status = rtems_task_set_note( Task_id[ 1 ], RTEMS_NOTEPAD_8, 4 );
     220    directive_failed( status, "task_set_node of TA1" );
     221    printf( "INIT - rtems_task_set_note - set TA1's RTEMS_NOTEPAD_8 " );
     222    puts  ( "to TA1's priority: 04" );
     223
     224    status = rtems_task_set_note( Task_id[ 2 ], RTEMS_NOTEPAD_8, 4 );
     225    directive_failed( status, "task_set_node of TA2" );
     226    printf( "INIT - rtems_task_set_note - set TA2's RTEMS_NOTEPAD_8 " );
     227    puts  ( "to TA2's priority: 04");
     228
     229  #pragma GCC diagnostic pop
    232230
    233231  status = rtems_task_delete( RTEMS_SELF );
  • testsuites/sptests/sp07/sp07.scn

    r0e6f915c r979bda9  
    1111rtems_extension_ident - bad name -- RTEMS_INVALID_ADDRESS
    1212rtems_extension_create - harmless -- OK
    13 INIT - rtems_task_set_note - set my (id) RTEMS_NOTEPAD_4 to TA1's priority: 04
    14 INIT - rtems_task_set_note - set my (SELF) RTEMS_NOTEPAD_4 to TA1's priority: 04
    1513INIT - rtems_task_set_note - set TA1's RTEMS_NOTEPAD_8 to TA1's priority: 04
    1614INIT - rtems_task_set_note - set TA2's RTEMS_NOTEPAD_8 to TA2's priority: 04
  • testsuites/sptests/sp07/task1.c

    r0e6f915c r979bda9  
    1313
    1414#include "system.h"
     15
     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"
    1520
    1621rtems_task Task_1(
  • testsuites/sptests/sp07/task2.c

    r0e6f915c r979bda9  
    1313
    1414#include "system.h"
     15
     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"
    1520
    1621rtems_task Task_2(
Note: See TracChangeset for help on using the changeset viewer.