Changeset 5a36154a in rtems
- Timestamp:
- 04/22/96 16:53:05 (28 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 8389628
- Parents:
- 1f94ed6b
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/tests/sptests/sp09/screen03.c
r1f94ed6b r5a36154a 21 21 22 22 extern rtems_configuration_table BSP_Configuration; 23 extern rtems_cpu_table _CPU_Table; 23 24 24 25 void Screen3() … … 43 44 puts( "TA1 - rtems_task_create - RTEMS_INVALID_NAME" ); 44 45 45 status = rtems_task_create( 46 task_name, 47 1, 48 BSP_Configuration.work_space_size, 49 RTEMS_DEFAULT_MODES, 50 RTEMS_DEFAULT_ATTRIBUTES, 51 &Junk_id 52 ); 53 fatal_directive_status( 54 status, 55 RTEMS_UNSATISFIED, 56 "rtems_task_create with a stack size larger than the workspace" 57 ); 58 puts( "TA1 - rtems_task_create - stack size - RTEMS_UNSATISFIED" ); 46 /* 47 * If the bsp provides its own stack allocator, then 48 * skip the test that tries to allocate a stack that is too big. 49 */ 50 51 if (_CPU_Table.stack_allocate_hook) 52 { 53 puts( "TA1 - rtems_task_create - stack size - RTEMS_UNSATISFIED -- SKIPPED" ); 54 } 55 else 56 { 57 status = rtems_task_create( 58 task_name, 59 1, 60 BSP_Configuration.work_space_size, 61 RTEMS_DEFAULT_MODES, 62 RTEMS_DEFAULT_ATTRIBUTES, 63 &Junk_id 64 ); 65 fatal_directive_status( 66 status, 67 RTEMS_UNSATISFIED, 68 "rtems_task_create with a stack size larger than the workspace" 69 ); 70 puts( "TA1 - rtems_task_create - stack size - RTEMS_UNSATISFIED" ); 71 } 59 72 60 73 status = rtems_task_create( -
testsuites/sptests/sp09/screen03.c
r1f94ed6b r5a36154a 21 21 22 22 extern rtems_configuration_table BSP_Configuration; 23 extern rtems_cpu_table _CPU_Table; 23 24 24 25 void Screen3() … … 43 44 puts( "TA1 - rtems_task_create - RTEMS_INVALID_NAME" ); 44 45 45 status = rtems_task_create( 46 task_name, 47 1, 48 BSP_Configuration.work_space_size, 49 RTEMS_DEFAULT_MODES, 50 RTEMS_DEFAULT_ATTRIBUTES, 51 &Junk_id 52 ); 53 fatal_directive_status( 54 status, 55 RTEMS_UNSATISFIED, 56 "rtems_task_create with a stack size larger than the workspace" 57 ); 58 puts( "TA1 - rtems_task_create - stack size - RTEMS_UNSATISFIED" ); 46 /* 47 * If the bsp provides its own stack allocator, then 48 * skip the test that tries to allocate a stack that is too big. 49 */ 50 51 if (_CPU_Table.stack_allocate_hook) 52 { 53 puts( "TA1 - rtems_task_create - stack size - RTEMS_UNSATISFIED -- SKIPPED" ); 54 } 55 else 56 { 57 status = rtems_task_create( 58 task_name, 59 1, 60 BSP_Configuration.work_space_size, 61 RTEMS_DEFAULT_MODES, 62 RTEMS_DEFAULT_ATTRIBUTES, 63 &Junk_id 64 ); 65 fatal_directive_status( 66 status, 67 RTEMS_UNSATISFIED, 68 "rtems_task_create with a stack size larger than the workspace" 69 ); 70 puts( "TA1 - rtems_task_create - stack size - RTEMS_UNSATISFIED" ); 71 } 59 72 60 73 status = rtems_task_create(
Note: See TracChangeset
for help on using the changeset viewer.