Changeset ab808e2 in rtems


Ignore:
Timestamp:
Aug 7, 2009, 2:04:55 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
eeb78c5
Parents:
c05f2010
Message:

2009-08-07 Joel Sherrill <joel.sherrill@…>

  • sp28/init.c, sp28/sp28.scn: Update screen. Add a few missing error cases.
Location:
testsuites/sptests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    rc05f2010 rab808e2  
     12009-08-07      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * sp28/init.c, sp28/sp28.scn: Update screen. Add a few missing error
     4        cases.
     5
    162009-08-06      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • testsuites/sptests/sp28/init.c

    rc05f2010 rab808e2  
    1010 */
    1111
    12 #define CONFIGURE_INIT
    1312#include <tmacros.h>
    14 
    15 rtems_task Init(rtems_task_argument argument);
    16 
    17 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    18 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    19 #define CONFIGURE_MAXIMUM_USER_EXTENSIONS    2
    20 
    21 #define CONFIGURE_MAXIMUM_TASKS              4
    22 #define CONFIGURE_MAXIMUM_TASK_VARIABLES     (4)
    23 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    24 #define CONFIGURE_MICROSECONDS_PER_TICK      10000
    25 
    26 #define CONFIGURE_MICROSECONDS_INIT
    27 
    28 #include <rtems/confdefs.h>
    2913
    3014#include <bsp.h>
     
    135119   *  task variable get error status codes
    136120   */
     121  puts( "task variable get - bad Id - RTEMS_INVALID_ID" );
     122  sc = rtems_task_variable_get(
     123    rtems_task_self() + 10,
     124    (void **)&taskvar1,
     125    &value
     126  );
     127  fatal_directive_status( sc, RTEMS_INVALID_ID, "bad Id" );
     128
    137129  puts( "task variable get - NULL pointer - RTEMS_INVALID_ADDRESS" );
    138130  sc = rtems_task_variable_get(RTEMS_SELF, NULL, &value );
     
    150142   *  task variable delete error status codes
    151143   */
     144  puts( "task variable delete - bad Id - RTEMS_INVALID_ID" );
     145  sc = rtems_task_variable_delete( rtems_task_self() + 10, (void **)&taskvar1 );
     146  fatal_directive_status( sc, RTEMS_INVALID_ID, "bad Id" );
     147
    152148  puts( "task variable delete - NULL pointer - RTEMS_INVALID_ADDRESS" );
    153149  sc = rtems_task_variable_delete(RTEMS_SELF, NULL);
     
    179175   *  verify that behavior is OK
    180176   */
     177  puts( "task variable add - bad Id - RTEMS_INVALID_ID" );
     178  sc = rtems_task_variable_add(
     179    rtems_task_self() + 10,
     180    (void **)&taskvar1,
     181    NULL
     182  );
     183  fatal_directive_status( sc, RTEMS_INVALID_ID, "bad Id" );
     184
    181185  puts( "Adding multiple task variables" );
    182186  sc = rtems_task_variable_add(RTEMS_SELF, (void **)&taskvar1, NULL);
     
    381385  rtems_task_suspend (RTEMS_SELF);
    382386}
     387
     388#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     389#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     390#define CONFIGURE_MAXIMUM_USER_EXTENSIONS    2
     391
     392#define CONFIGURE_MAXIMUM_TASKS              4
     393#define CONFIGURE_MAXIMUM_TASK_VARIABLES     (4)
     394#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
     395#define CONFIGURE_MICROSECONDS_PER_TICK      10000
     396
     397#define CONFIGURE_INIT
     398#include <rtems/confdefs.h>
     399
  • testsuites/sptests/sp28/sp28.scn

    rc05f2010 rab808e2  
    11*** START OF TEST 28 ***
    2 Task variables test begins.  Any output between
    3 this line and the `Task variables test complete' line indicates an error.
    4 Task variables test succeeded.
     2task variable get - bad Id - RTEMS_INVALID_ID
     3task variable get - NULL pointer - RTEMS_INVALID_ADDRESS
     4task variable get - bad result - RTEMS_INVALID_ADDRESS
     5task variable get - bad pointer - RTEMS_INVALID_ADDRESS
     6task variable delete - bad Id - RTEMS_INVALID_ID
     7task variable delete - NULL pointer - RTEMS_INVALID_ADDRESS
     8task variable delete - bad pointer - RTEMS_INVALID_ADDRESS
     9task variable add - bad Id - RTEMS_INVALID_ID
     10Adding multiple task variables
     11Obtaining multiple task variables
     12Deleting multiple task variables
     13Adding multiple task variables to delete implicitly
     14Deleting task variables in another task
     15task_variable_add - returns NO_MEMORY
    516*** END OF TEST 28 ***
Note: See TracChangeset for help on using the changeset viewer.