Changeset dc9f1a9 in rtems


Ignore:
Timestamp:
Sep 5, 2011, 9:49:52 AM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
3b9247e
Parents:
79fa247
Message:

2011-09-05 Sebastian Huber <sebastian.huber@…>

  • psxfatal01/psxfatal01.scn, psxfatal01/testcase.h, psxfatal02/psxfatal02.scn, psxfatal02/testcase.h, psxfatal_support/init.c: Print proper begin and end message.
Location:
testsuites/psxtests
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r79fa247 rdc9f1a9  
     12011-09-05      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * psxfatal01/psxfatal01.scn, psxfatal01/testcase.h,
     4        psxfatal02/psxfatal02.scn, psxfatal02/testcase.h,
     5        psxfatal_support/init.c: Print proper begin and end message.
     6
    172011-08-21      Joel Sherrill <joel.sherrilL@OARcorp.com>
    28
  • testsuites/psxtests/psxfatal01/psxfatal01.scn

    r79fa247 rdc9f1a9  
     1*** TEST POSIX FATAL 1 ***
    12Fatal error (POSIX API Init thread create failure - NULL entry) hit
    2 *** END OF TEST ***
     3*** END OF TEST POSIX FATAL 1 ***
  • testsuites/psxtests/psxfatal01/testcase.h

    r79fa247 rdc9f1a9  
    2525      sizeof(posix_initialization_threads_table)
    2626
     27#define FATAL_ERROR_TEST_NAME            "1"
    2728#define FATAL_ERROR_DESCRIPTION \
    2829        "POSIX API Init thread create failure - NULL entry"
  • testsuites/psxtests/psxfatal02/psxfatal02.scn

    r79fa247 rdc9f1a9  
     1*** TEST POSIX FATAL 2 ***
    12Fatal error (POSIX API Init thread create failure -- no memory for stack) hit
    2 *** END OF TEST ***
     3*** END OF TEST POSIX FATAL 2 ***
  • testsuites/psxtests/psxfatal02/testcase.h

    r79fa247 rdc9f1a9  
    2929      sizeof(posix_initialization_threads_table)
    3030
     31#define FATAL_ERROR_TEST_NAME            "2"
    3132#define FATAL_ERROR_DESCRIPTION \
    3233        "POSIX API Init thread create failure -- no memory for stack"
  • testsuites/psxtests/psxfatal_support/init.c

    r79fa247 rdc9f1a9  
    1717#include "system.h"
    1818
     19static void print_test_begin_message(void)
     20{
     21  static bool done = false;
     22
     23  if (!done) {
     24    done = true;
     25    printk( "\n\n\n*** TEST POSIX FATAL " FATAL_ERROR_TEST_NAME " ***\n" );
     26  }
     27}
     28
    1929void *POSIX_Init(
    2030  void *argument
    2131)
    2232{
     33  print_test_begin_message();
    2334  force_error();
    2435  printk( "Fatal error (%s) NOT hit\n", FATAL_ERROR_DESCRIPTION );
     
    116127)
    117128{
     129  print_test_begin_message();
    118130  printk( "Fatal error (%s) hit\n", FATAL_ERROR_DESCRIPTION );
    119131
     
    147159      && error == FATAL_ERROR_EXPECTED_ERROR
    148160  ) {
    149     printk( "*** END OF TEST ***\n" );
     161    printk( "*** END OF TEST POSIX FATAL " FATAL_ERROR_TEST_NAME " ***\n" );
    150162  }
    151163
Note: See TracChangeset for help on using the changeset viewer.