Changeset a5b04da in rtems for testsuites/sptests/sp65/init.c


Ignore:
Timestamp:
Sep 14, 2009, 8:05:44 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
d5ef0836
Parents:
ab2422c
Message:

2009-09-14 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac, sp65/init.c: Add new test to exercise very simple priority ceiling case that was previously only tested via the POSIX API.
  • sp66/.cvsignore, sp66/Makefile.am, sp66/init.c, sp66/sp66.doc, sp66/sp66.scn: New files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/sp65/init.c

    rab2422c ra5b04da  
    1212#include <tmacros.h>
    1313
     14#if defined(INHERIT_CEILING)
     15  #define TEST_NAME                "66"
     16  #define TASK_PRIORITY            2
     17#else
     18  #define TEST_NAME                "65"
     19  #define TASK_PRIORITY            1
     20#endif
     21
    1422rtems_task Task_1(
    1523  rtems_task_argument arg
     
    2331  rtems_id             Mutex_id, Task_id;
    2432 
    25   puts( "\n\n*** TEST 65 ***" );
     33  puts( "\n\n*** TEST " TEST_NAME " ***" );
    2634
    2735  /*
     
    4654  puts( "Calling rtems_task_create" );
    4755  status = rtems_task_create( rtems_build_name( 'T', 'A', 'S', '1' ),
    48   1,
    49   RTEMS_MINIMUM_STACK_SIZE,
    50   RTEMS_DEFAULT_MODES,
    51   RTEMS_DEFAULT_ATTRIBUTES,
    52   &Task_id
     56    TASK_PRIORITY,
     57    RTEMS_MINIMUM_STACK_SIZE,
     58    RTEMS_DEFAULT_MODES,
     59    RTEMS_DEFAULT_ATTRIBUTES,
     60    &Task_id
    5361  );
    5462  directive_failed( status, "rtems_task_create" );
     
    9098#define CONFIGURE_MAXIMUM_TASKS         2
    9199#define CONFIGURE_MAXIMUM_SEMAPHORES    1
     100#define CONFIGURE_INIT_TASK_PRIORITY    TASK_PRIORITY
    92101#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    93102
Note: See TracChangeset for help on using the changeset viewer.