Changeset de9b7d7 in rtems for testsuites
- Timestamp:
- 06/01/18 05:04:45 (6 years ago)
- Branches:
- 5, master
- Children:
- 07c5976
- Parents:
- c934365f
- git-author:
- Sebastian Huber <sebastian.huber@…> (06/01/18 05:04:45)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (06/05/18 06:49:56)
- Location:
- testsuites
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuites/libtests/malloc03/init.c
rc934365f rde9b7d7 13 13 14 14 #include <tmacros.h> 15 #include "test_support.h"16 15 17 16 const char rtems_test_name[] = "MALLOC 3"; 18 17 19 /* forward declarations to avoid warnings */ 20 rtems_task Init(rtems_task_argument argument); 21 22 rtems_task Init( 18 static rtems_task Init( 23 19 rtems_task_argument argument 24 20 ) … … 31 27 printf("Attempt to free stack memory\n"); 32 28 free( p1 ); 29 } 33 30 34 TEST_END(); 35 36 rtems_test_exit(0); 31 static void fatal_extension( 32 rtems_fatal_source source, 33 bool always_set_to_false, 34 rtems_fatal_code error 35 ) 36 { 37 if ( 38 source == RTEMS_FATAL_SOURCE_INVALID_HEAP_FREE 39 && !always_set_to_false 40 && error != 0 41 ) { 42 TEST_END(); 43 } 37 44 } 38 45 … … 43 50 44 51 #define CONFIGURE_MAXIMUM_TASKS 1 45 #define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION 52 53 #define CONFIGURE_INITIAL_EXTENSIONS \ 54 { .fatal = fatal_extension }, \ 55 RTEMS_TEST_INITIAL_EXTENSION 46 56 47 57 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE -
testsuites/sptests/Makefile.am
rc934365f rde9b7d7 1099 1099 endif 1100 1100 1101 if TEST_spfatal32 1102 sp_tests += spfatal32 1103 sp_screens += spfatal32/spfatal32.scn 1104 sp_docs += spfatal32/spfatal32.doc 1105 spfatal32_SOURCES = spfatal_support/init.c spfatal_support/system.h \ 1106 spfatal32/testcase.h 1107 spfatal32_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_spfatal32) \ 1108 $(support_includes) -I$(top_srcdir)/spfatal32 1109 endif 1110 1101 1111 if TEST_spfifo01 1102 1112 sp_tests += spfifo01 -
testsuites/sptests/configure.ac
rc934365f rde9b7d7 158 158 RTEMS_TEST_CHECK([spfatal30]) 159 159 RTEMS_TEST_CHECK([spfatal31]) 160 RTEMS_TEST_CHECK([spfatal32]) 160 161 RTEMS_TEST_CHECK([spfifo01]) 161 162 RTEMS_TEST_CHECK([spfifo02]) -
testsuites/sptests/spinternalerror02/init.c
rc934365f rde9b7d7 54 54 } while ( text != text_last ); 55 55 56 rtems_test_assert( source - 3 == RTEMS_FATAL_SOURCE_ PANIC);56 rtems_test_assert( source - 3 == RTEMS_FATAL_SOURCE_INVALID_HEAP_FREE ); 57 57 } 58 58 -
testsuites/sptests/spinternalerror02/spinternalerror02.scn
rc934365f rde9b7d7 46 46 RTEMS_FATAL_SOURCE_SMP 47 47 RTEMS_FATAL_SOURCE_PANIC 48 RTEMS_FATAL_SOURCE_INVALID_HEAP_FREE 48 49 ? 49 50 ?
Note: See TracChangeset
for help on using the changeset viewer.