Changeset 7467542 in rtems


Ignore:
Timestamp:
Jul 25, 2009, 1:39:45 AM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
6914ffe
Parents:
96b8762
Message:

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

  • Makefile.am, configure.ac, sp40/Makefile.am, sp40/init.c, sp40/sp40.scn: Now verified to hit coverage cases.
  • sp40/sp40.doc: New file.
Location:
testsuites/sptests
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r96b8762 r7467542  
     12009-07-24      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * Makefile.am, configure.ac, sp40/Makefile.am, sp40/init.c,
     4        sp40/sp40.scn: Now verified to hit coverage cases.
     5        * sp40/sp40.doc: New file.
     6
    172009-07-24      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • testsuites/sptests/Makefile.am

    r96b8762 r7467542  
    2222    spintrcritical05 spintrcritical06 spintrcritical07 spintrcritical08 \
    2323    spintrcritical09 spintrcritical10 spintrcritical11 spintrcritical12 \
    24     spintrcritical13 spintrcritical14
     24    spintrcritical13 spintrcritical14 spintrcritical15
    2525 
    2626DIST_SUBDIRS = $(SUBDIRS) spfatal_support spintrcritical_support
  • testsuites/sptests/configure.ac

    r96b8762 r7467542  
    115115spintrcritical13/Makefile
    116116spintrcritical14/Makefile
     117spintrcritical15/Makefile
    117118spobjgetnext/Makefile
    118119spprintk/Makefile
  • testsuites/sptests/sp40/Makefile.am

    r96b8762 r7467542  
    99
    1010dist_rtems_tests_DATA = sp40.scn
     11dist_rtems_tests_DATA += sp40.doc
    1112
    1213include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
  • testsuites/sptests/sp40/init.c

    r96b8762 r7467542  
    3636  rtems_status_code         sc;
    3737  rtems_device_major_number registered;
     38  rtems_device_major_number registered_not;
    3839
    3940  puts( "\n\n*** TEST 40 ***" );
     
    4849  directive_failed( sc, "rtems_io_register_driver" );
    4950
     51  puts( "Init - rtems_io_register_driver - init == NULL, open != NULL OK" );
     52  sc = rtems_io_register_driver( 0, &test_driver, &registered_not );
     53  printf( "Init - Major slot returned = %d\n", (int) registered_not );
     54  fatal_directive_status(
     55    sc,
     56    RTEMS_TOO_MANY,
     57    "rtems_io_register_driver too many"
     58  );
     59
    5060  puts( "Init - rtems_io_register_driver - used slot" );
    51   sc = rtems_io_register_driver( 1, &test_driver, &registered );
     61  sc = rtems_io_register_driver( registered, &test_driver, &registered );
    5262  fatal_directive_status(
    5363    sc,
     
    7383
    7484/* more one more driver slot than are statically configured */
    75 #define CONFIGURE_MAXIMUM_DRIVERS 4
     85#define CONFIGURE_MAXIMUM_DRIVERS 3
    7686
    7787#define CONFIGURE_MAXIMUM_TASKS  1
  • testsuites/sptests/sp40/sp40.scn

    r96b8762 r7467542  
    11*** TEST 40 ***
    22Init - rtems_io_register_driver - init == NULL, open != NULL OK
    3 Init - Major slot returned = 3
     3Init - Major slot returned = 2
     4Init - rtems_io_register_driver - init == NULL, open != NULL OK
     5Init - Major slot returned = 0
    46Init - rtems_io_register_driver - used slot
    57*** END OF TEST 40 ***
Note: See TracChangeset for help on using the changeset viewer.