Changeset a0c7aa55 in rtems
- Timestamp:
- Nov 14, 2012, 1:54:09 PM (7 years ago)
- 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)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libcsupport/src/__assert.c
rb1e8a58 ra0c7aa55 35 35 (func) ? func : "" 36 36 ); 37 rtems_fatal _error_occurred(0);37 rtems_fatal( RTEMS_FATAL_SOURCE_ASSERT, (rtems_fatal_code) func ); 38 38 } 39 39 #endif -
cpukit/score/include/rtems/score/interr.h
rb1e8a58 ra0c7aa55 83 83 */ 84 84 RTEMS_FATAL_SOURCE_BSP_SPECIFIC, 85 86 /** 87 * @brief Fatal source of assert(). 88 * 89 * The fatal code is the pointer value of the function string. 90 */ 91 RTEMS_FATAL_SOURCE_ASSERT, 85 92 86 93 /** -
testsuites/sptests/spfatal10/testcase.h
rb1e8a58 ra0c7aa55 11 11 #include <assert.h> 12 12 13 static const char func [] = "Init"; 14 13 15 #define FATAL_ERROR_TEST_NAME "10" 14 16 #define FATAL_ERROR_DESCRIPTION "asserting with non-NULL strings..." 15 #define FATAL_ERROR_EXPECTED_SOURCE INTERNAL_ERROR_RTEMS_API17 #define FATAL_ERROR_EXPECTED_SOURCE RTEMS_FATAL_SOURCE_ASSERT 16 18 #define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE 17 #define FATAL_ERROR_EXPECTED_ERROR 019 #define FATAL_ERROR_EXPECTED_ERROR ((rtems_fatal_code) func) 18 20 19 21 void force_error() 20 22 { 21 __assert_func( __FILE__, __LINE__, "Init", "forced" );23 __assert_func( __FILE__, __LINE__, func, "forced" ); 22 24 23 25 /* we will not run this far */ -
testsuites/sptests/spfatal11/testcase.h
rb1e8a58 ra0c7aa55 13 13 #define FATAL_ERROR_TEST_NAME "11" 14 14 #define FATAL_ERROR_DESCRIPTION "asserting with non-NULL strings..." 15 #define FATAL_ERROR_EXPECTED_SOURCE INTERNAL_ERROR_RTEMS_API15 #define FATAL_ERROR_EXPECTED_SOURCE RTEMS_FATAL_SOURCE_ASSERT 16 16 #define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE 17 17 #define FATAL_ERROR_EXPECTED_ERROR 0
Note: See TracChangeset
for help on using the changeset viewer.