Changeset b2e48ffe in rtems


Ignore:
Timestamp:
Mar 10, 2011, 4:36:51 PM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
08d01a1
Parents:
627b70e
Message:

2011-03-10 Sebastian Huber <sebastian.huber@…>

  • sp07/init.c: Improve coverage.
Location:
testsuites/sptests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r627b70e rb2e48ffe  
     12011-03-10      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * sp07/init.c: Improve coverage.
     4
    152011-03-09      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • testsuites/sptests/sp07/init.c

    r627b70e rb2e48ffe  
    1717#include "system.h"
    1818
     19static void Task_harmless_extension_one(
     20  rtems_tcb *unused_one
     21)
     22{
     23  /* Do nothing */
     24}
     25
     26static void Task_harmless_extension_two(
     27  rtems_tcb *unused_one,
     28  rtems_tcb *unused_two
     29)
     30{
     31  /* Do nothing */
     32}
     33
     34static bool Task_harmless_extension_true_two(
     35  rtems_tcb *unused_one,
     36  rtems_tcb *unused_two
     37)
     38{
     39  return true;
     40}
     41
     42static const rtems_extensions_table Harmless_extensions = {
     43  Task_harmless_extension_true_two,
     44  Task_harmless_extension_two,
     45  Task_harmless_extension_two,
     46  Task_harmless_extension_two,
     47  Task_harmless_extension_two,
     48  Task_harmless_extension_one,
     49  Task_harmless_extension_one,
     50  NULL
     51};
     52
    1953rtems_extensions_table Extensions = {
    2054  Task_create_extension,     /* task create user extension */
     
    100134  );
    101135
     136  puts( "rtems_extension_create - harmless -- OK" );
     137  status = rtems_extension_create(
     138    Extension_name[ 2 ],
     139    &Harmless_extensions,
     140    &Extension_id[ 2 ]
     141  );
     142  directive_failed( status, "rtems_extension_create #3" );
     143
    102144  Task_name[ 1 ] = rtems_build_name( 'T', 'A', '1', ' ' );
    103145  Task_name[ 2 ] = rtems_build_name( 'T', 'A', '2', ' ' );
Note: See TracChangeset for help on using the changeset viewer.