Changeset d329acf4 in rtems


Ignore:
Timestamp:
Sep 4, 2009, 9:28:56 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
05e8b649
Parents:
d4f932c9
Message:

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

  • spfatal01/spfatal01.scn, spfatal01/testcase.h, spfatal02/spfatal02.scn, spfatal02/testcase.h, spfatal03/spfatal03.scn, spfatal03/testcase.h, spfatal04/spfatal04.scn, spfatal04/testcase.h, spfatal05/spfatal05.scn, spfatal05/testcase.h, spfatal06/spfatal06.scn, spfatal06/testcase.h, spfatal07/spfatal07.scn, spfatal07/testcase.h, spfatal08/spfatal08.scn, spfatal08/testcase.h, spfatal09/spfatal09.scn, spfatal09/testcase.h, spfatal10/Makefile.am, spfatal10/spfatal10.scn, spfatal11/Makefile.am, spfatal11/spfatal11.scn, spfatal12/Makefile.am, spfatal12/spfatal12.scn, spfatal_support/init.c: Make all fatal error tests use testcase.h and spfatal_support framework. Print test name herald in all cases.
  • spfatal10/testcase.h, spfatal11/testcase.h, spfatal12/testcase.h: New files.
  • spfatal10/init.c, spfatal11/init.c, spfatal12/init.c: Removed.
Location:
testsuites/sptests
Files:
3 added
3 deleted
26 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    rd4f932c9 rd329acf4  
     12009-09-04      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * spfatal01/spfatal01.scn, spfatal01/testcase.h,
     4        spfatal02/spfatal02.scn, spfatal02/testcase.h,
     5        spfatal03/spfatal03.scn, spfatal03/testcase.h,
     6        spfatal04/spfatal04.scn, spfatal04/testcase.h,
     7        spfatal05/spfatal05.scn, spfatal05/testcase.h,
     8        spfatal06/spfatal06.scn, spfatal06/testcase.h,
     9        spfatal07/spfatal07.scn, spfatal07/testcase.h,
     10        spfatal08/spfatal08.scn, spfatal08/testcase.h,
     11        spfatal09/spfatal09.scn, spfatal09/testcase.h, spfatal10/Makefile.am,
     12        spfatal10/spfatal10.scn, spfatal11/Makefile.am,
     13        spfatal11/spfatal11.scn, spfatal12/Makefile.am,
     14        spfatal12/spfatal12.scn, spfatal_support/init.c: Make all fatal error
     15        tests use testcase.h and spfatal_support framework. Print test name
     16        herald in all cases.
     17        * spfatal10/testcase.h, spfatal11/testcase.h, spfatal12/testcase.h:
     18        New files.
     19        * spfatal10/init.c, spfatal11/init.c, spfatal12/init.c: Removed.
     20
    1212009-09-04      Joel Sherrill <joel.sherrill@oarcorp.com>
    222
  • testsuites/sptests/spfatal01/spfatal01.scn

    rd4f932c9 rd329acf4  
     1*** TEST FATAL 1 ***
    12Fatal error (Classic API Init task create failure) hit
  • testsuites/sptests/spfatal01/testcase.h

    rd4f932c9 rd329acf4  
    2525  sizeof(CONFIGURE_INIT_TASK_TABLE) / sizeof(rtems_initialization_tasks_table)
    2626
     27#define FATAL_ERROR_TEST_NAME            "1"
    2728#define FATAL_ERROR_DESCRIPTION          "Classic API Init task create failure"
    2829#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_RTEMS_API
  • testsuites/sptests/spfatal02/spfatal02.scn

    rd4f932c9 rd329acf4  
     1*** TEST FATAL 2 ***
    12Fatal error (Classic API Init task start failure) hit
  • testsuites/sptests/spfatal02/testcase.h

    rd4f932c9 rd329acf4  
    2525  sizeof(CONFIGURE_INIT_TASK_TABLE) / sizeof(rtems_initialization_tasks_table)
    2626
     27#define FATAL_ERROR_TEST_NAME            "2"
    2728#define FATAL_ERROR_DESCRIPTION          "Classic API Init task start failure"
    2829#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_RTEMS_API
  • testsuites/sptests/spfatal03/spfatal03.scn

    rd4f932c9 rd329acf4  
     1*** TEST FATAL 3 ***
    12Create semaphore S0
    23Obtain semaphore in dispatching critical section
  • testsuites/sptests/spfatal03/testcase.h

    rd4f932c9 rd329acf4  
    1616#define CONFIGURE_MAXIMUM_SEMAPHORES 10
    1717
     18#define FATAL_ERROR_TEST_NAME            "3"
    1819#define FATAL_ERROR_DESCRIPTION          "Core Mutex obtain in critical section"
    1920#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_CORE
  • testsuites/sptests/spfatal04/spfatal04.scn

    rd4f932c9 rd329acf4  
     1*** TEST FATAL 4 ***
    12Fatal error (Classic API call rtems_fatal_error_occurred) hit
  • testsuites/sptests/spfatal04/testcase.h

    rd4f932c9 rd329acf4  
    2525  sizeof(CONFIGURE_INIT_TASK_TABLE) / sizeof(rtems_initialization_tasks_table)
    2626
    27 #define FATAL_ERROR_DESCRIPTION          "Classic API call rtems_fatal_error_occurred"
     27#define FATAL_ERROR_TEST_NAME            "4"
     28#define FATAL_ERROR_DESCRIPTION \
     29        "Classic API call rtems_fatal_error_occurred"
    2830#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_RTEMS_API
    2931#define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE
  • testsuites/sptests/spfatal05/spfatal05.scn

    rd4f932c9 rd329acf4  
     1*** TEST FATAL 5 ***
    12Fatal error (Core fall out of a task) hit
  • testsuites/sptests/spfatal05/testcase.h

    rd4f932c9 rd329acf4  
    3434#define SPFATAL_TEST_CASE_EXTRA_TASKS 1
    3535
     36#define FATAL_ERROR_TEST_NAME            "5"
    3637#define FATAL_ERROR_DESCRIPTION          "Core fall out of a task"
    3738#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_CORE
  • testsuites/sptests/spfatal06/spfatal06.scn

    rd4f932c9 rd329acf4  
     1*** TEST FATAL 6 ***
    12Fatal error (Core initialize with invalid stack hook) hit
  • testsuites/sptests/spfatal06/testcase.h

    rd4f932c9 rd329acf4  
    3232  sizeof(CONFIGURE_INIT_TASK_TABLE) / sizeof(rtems_initialization_tasks_table)
    3333
    34 #define FATAL_ERROR_DESCRIPTION          "Core initialize with invalid stack hook"
     34#define FATAL_ERROR_TEST_NAME            "6"
     35#define FATAL_ERROR_DESCRIPTION \
     36        "Core initialize with invalid stack hook"
    3537#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_CORE
    3638#define FATAL_ERROR_EXPECTED_IS_INTERNAL TRUE
    3739#define FATAL_ERROR_EXPECTED_ERROR       INTERNAL_ERROR_BAD_STACK_HOOK
    3840
    39 void *New_stack_allocate_hook(uint32_t unused);
     41void *New_stack_allocate_hook(size_t unused);
    4042
    41 void *New_stack_allocate_hook(uint32_t unused)
     43void *New_stack_allocate_hook(size_t unused)
    4244{
    4345}
     
    4850    Configuration.stack_allocate_hook = NULL;
    4951  else
    50     Configuration.stack_allocate_hook = &New_stack_allocate_hook;
     52    Configuration.stack_allocate_hook = New_stack_allocate_hook;
    5153
    5254  rtems_initialize_data_structures();
  • testsuites/sptests/spfatal07/spfatal07.scn

    rd4f932c9 rd329acf4  
     1*** TEST FATAL 7 ***
    12Fatal error (Core Configuration Invalid ISR stack size) hit
  • testsuites/sptests/spfatal07/testcase.h

    rd4f932c9 rd329acf4  
    3232  sizeof(CONFIGURE_INIT_TASK_TABLE) / sizeof(rtems_initialization_tasks_table)
    3333
    34 #define FATAL_ERROR_DESCRIPTION          "Core Configuration Invalid ISR stack size"
     34#define FATAL_ERROR_TEST_NAME            "7"
     35#define FATAL_ERROR_DESCRIPTION \
     36        "Core Configuration Invalid ISR stack size"
    3537#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_CORE
    3638#define FATAL_ERROR_EXPECTED_IS_INTERNAL TRUE
  • testsuites/sptests/spfatal08/spfatal08.scn

    rd4f932c9 rd329acf4  
     1*** TEST FATAL 8 ***
    12Fatal error (Core workspace too small) hit
  • testsuites/sptests/spfatal08/testcase.h

    rd4f932c9 rd329acf4  
    3232  sizeof(CONFIGURE_INIT_TASK_TABLE) / sizeof(rtems_initialization_tasks_table)
    3333
     34#define FATAL_ERROR_TEST_NAME            "8"
    3435#define FATAL_ERROR_DESCRIPTION          "Core workspace too small"
    3536#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_CORE
  • testsuites/sptests/spfatal09/spfatal09.scn

    rd4f932c9 rd329acf4  
     1*** TEST FATAL 9 ***
    12Fatal error (Core invalid workspace address) hit
  • testsuites/sptests/spfatal09/testcase.h

    rd4f932c9 rd329acf4  
    3232  sizeof(CONFIGURE_INIT_TASK_TABLE) / sizeof(rtems_initialization_tasks_table)
    3333
     34#define FATAL_ERROR_TEST_NAME            "9"
    3435#define FATAL_ERROR_DESCRIPTION          "Core invalid workspace address"
    3536#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_CORE
  • testsuites/sptests/spfatal10/Makefile.am

    rd4f932c9 rd329acf4  
    66
    77rtems_tests_PROGRAMS = spfatal10
    8 spfatal10_SOURCES = init.c
     8spfatal10_SOURCES = ../spfatal_support/init.c ../spfatal_support/system.h \
     9    testcase.h
    910
    1011dist_rtems_tests_DATA = spfatal10.scn
  • testsuites/sptests/spfatal10/spfatal10.scn

    rd4f932c9 rd329acf4  
    11*** TEST FATAL 10 ***
    2 asserting with non-NULL strings...
    3 
    4 assertion "force" failed: file "../../../../../../../rtems/c/src/../../testsuites/sptests/spfatal10/init.c", line 24, function: Init
    5 program stopped with signal 2.
     2assertion "forced" failed: file "../../../../../../../rtems/c/src/../../testsuites/sptests/spfatal10/testcase.h", line 20, function: Init
     3Fatal error (asserting with non-NULL strings...) hit
  • testsuites/sptests/spfatal11/Makefile.am

    rd4f932c9 rd329acf4  
    66
    77rtems_tests_PROGRAMS = spfatal11
    8 spfatal11_SOURCES = init.c
     8spfatal11_SOURCES = ../spfatal_support/init.c ../spfatal_support/system.h \
     9    testcase.h
    910
    1011dist_rtems_tests_DATA = spfatal11.scn
  • testsuites/sptests/spfatal11/spfatal11.scn

    rd4f932c9 rd329acf4  
    11*** TEST FATAL 11 ***
    22asserting with non-NULL strings...
     3assertion "forced" failed: file "../../../../../../../rtems/c/src/../../testsuites/sptests/spfatal11/testcase.h", line 21
     4Fatal error (asserting with non-NULL strings...) hit
    35
    4 assertion "forced" failed: file "../../../../../../../rtems/c/src/../../testsuites/sptests/spfatal11/init.c", line 24
    5 program stopped with signal 2.
  • testsuites/sptests/spfatal12/Makefile.am

    rd4f932c9 rd329acf4  
    66
    77rtems_tests_PROGRAMS = spfatal12
    8 spfatal12_SOURCES = init.c
     8spfatal12_SOURCES = ../spfatal_support/init.c ../spfatal_support/system.h \
     9    testcase.h
    910
    1011dist_rtems_tests_DATA = spfatal12.scn
  • testsuites/sptests/spfatal12/spfatal12.scn

    rd4f932c9 rd329acf4  
    11*** TEST FATAL 12 ***
    2 _Heap_Initialize fails during RTEMS initialization
     2Fatal error (_Heap_Initialize fails during RTEMS initialization) hit
  • testsuites/sptests/spfatal_support/init.c

    rd4f932c9 rd329acf4  
    2929)
    3030{
     31  printk( "\n\n\n*** TEST FATAL " FATAL_ERROR_TEST_NAME " ***\n" );
    3132  force_error();
    3233  printk( "Fatal error (%s) NOT hit\n", FATAL_ERROR_DESCRIPTION );
Note: See TracChangeset for help on using the changeset viewer.