Ignore:
Timestamp:
Nov 14, 2012, 1:54:09 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
a12f7e9
Parents:
b1e8a58
git-author:
Sebastian Huber <sebastian.huber@…> (11/14/12 13:54:09)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/15/12 14:33:13)
Message:

score: Add RTEMS_FATAL_SOURCE_ASSERT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/spfatal10/testcase.h

    rb1e8a58 ra0c7aa55  
    1111#include <assert.h>
    1212
     13static const char func [] = "Init";
     14
    1315#define FATAL_ERROR_TEST_NAME            "10"
    1416#define FATAL_ERROR_DESCRIPTION          "asserting with non-NULL strings..."
    15 #define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_RTEMS_API
     17#define FATAL_ERROR_EXPECTED_SOURCE      RTEMS_FATAL_SOURCE_ASSERT
    1618#define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE
    17 #define FATAL_ERROR_EXPECTED_ERROR       0
     19#define FATAL_ERROR_EXPECTED_ERROR       ((rtems_fatal_code) func)
    1820
    1921void force_error()
    2022{
    21   __assert_func( __FILE__, __LINE__, "Init", "forced" );
     23  __assert_func( __FILE__, __LINE__, func, "forced" );
    2224
    2325  /* we will not run this far */
Note: See TracChangeset for help on using the changeset viewer.