Changeset 3d9f688e in rtems
- Timestamp:
- 01/03/03 20:51:34 (21 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- ea14663
- Parents:
- 6bd96fc7
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/tests/samples/ChangeLog
r6bd96fc7 r3d9f688e 1 2002-10-31 Chris Johns <ccj@acm.org> 2 3 * unlimited/test1.c: PR296. Only fails if more tasks than allowed 4 can be created. 5 * unlimited/system.h: PR296. Reference the number of tasks in the 6 configuration table rather than a hardcoded number. 7 1 8 2002-11-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 9 -
c/src/tests/samples/unlimited/system.h
r6bd96fc7 r3d9f688e 47 47 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE 48 48 49 #define TASK_ALLOCATION_SIZE (5) 49 #define TASK_ALLOCATION_SIZE \ 50 (rtems_configuration_get_rtems_api_configuration()->maximum_tasks & \ 51 ~RTEMS_UNLIMITED_OBJECTS) 50 52 #define CONFIGURE_MAXIMUM_TASKS rtems_resource_unlimited(TASK_ALLOCATION_SIZE) 51 53 #define CONFIGURE_EXTRA_TASK_STACKS (62 * RTEMS_MINIMUM_STACK_SIZE) -
c/src/tests/samples/unlimited/test1.c
r6bd96fc7 r3d9f688e 28 28 rtems_status_code result; 29 29 rtems_unsigned32 task_count = 0; 30 rtems_unsigned32 expected_count; 30 31 Objects_Information *the_information; 31 32 … … 46 47 auto_extend = the_information->auto_extend; 47 48 the_information->auto_extend = FALSE; 48 49 expected_count = the_information->inactive; 50 49 51 while (task_count < MAX_TASKS) 50 52 { … … 87 89 printf( "\nMAX_TASKS too small for work-space size, please make larger !!\n\n" ); 88 90 89 if (task_count != (TASK_ALLOCATION_SIZE - 1)) {91 if (task_count != expected_count) { 90 92 printf( " FAIL1 : the number of tasks does not equal the expected size -\n" 91 93 " task created = %i, required number = %i\n", … … 100 102 printf( " TEST1 : completed\n" ); 101 103 } 102 103 104 105 106 -
testsuites/samples/ChangeLog
r6bd96fc7 r3d9f688e 1 2002-10-31 Chris Johns <ccj@acm.org> 2 3 * unlimited/test1.c: PR296. Only fails if more tasks than allowed 4 can be created. 5 * unlimited/system.h: PR296. Reference the number of tasks in the 6 configuration table rather than a hardcoded number. 7 1 8 2002-11-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 9 -
testsuites/samples/unlimited/system.h
r6bd96fc7 r3d9f688e 47 47 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE 48 48 49 #define TASK_ALLOCATION_SIZE (5) 49 #define TASK_ALLOCATION_SIZE \ 50 (rtems_configuration_get_rtems_api_configuration()->maximum_tasks & \ 51 ~RTEMS_UNLIMITED_OBJECTS) 50 52 #define CONFIGURE_MAXIMUM_TASKS rtems_resource_unlimited(TASK_ALLOCATION_SIZE) 51 53 #define CONFIGURE_EXTRA_TASK_STACKS (62 * RTEMS_MINIMUM_STACK_SIZE) -
testsuites/samples/unlimited/test1.c
r6bd96fc7 r3d9f688e 28 28 rtems_status_code result; 29 29 rtems_unsigned32 task_count = 0; 30 rtems_unsigned32 expected_count; 30 31 Objects_Information *the_information; 31 32 … … 46 47 auto_extend = the_information->auto_extend; 47 48 the_information->auto_extend = FALSE; 48 49 expected_count = the_information->inactive; 50 49 51 while (task_count < MAX_TASKS) 50 52 { … … 87 89 printf( "\nMAX_TASKS too small for work-space size, please make larger !!\n\n" ); 88 90 89 if (task_count != (TASK_ALLOCATION_SIZE - 1)) {91 if (task_count != expected_count) { 90 92 printf( " FAIL1 : the number of tasks does not equal the expected size -\n" 91 93 " task created = %i, required number = %i\n", … … 100 102 printf( " TEST1 : completed\n" ); 101 103 } 102 103 104 105 106
Note: See TracChangeset
for help on using the changeset viewer.