Changeset 3d9f688e in rtems


Ignore:
Timestamp:
Jan 3, 2003, 8:51:34 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ea14663
Parents:
6bd96fc7
Message:

2002-10-31 Chris Johns <ccj@…>

  • unlimited/test1.c: PR296. Only fails if more tasks than allowed can be created.
  • unlimited/system.h: PR296. Reference the number of tasks in the configuration table rather than a hardcoded number.
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/samples/ChangeLog

    r6bd96fc7 r3d9f688e  
     12002-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
    182002-11-05      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    29
  • c/src/tests/samples/unlimited/system.h

    r6bd96fc7 r3d9f688e  
    4747#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    4848
    49 #define TASK_ALLOCATION_SIZE     (5)
     49#define TASK_ALLOCATION_SIZE \
     50    (rtems_configuration_get_rtems_api_configuration()->maximum_tasks & \
     51                                    ~RTEMS_UNLIMITED_OBJECTS)
    5052#define CONFIGURE_MAXIMUM_TASKS  rtems_resource_unlimited(TASK_ALLOCATION_SIZE)
    5153#define CONFIGURE_EXTRA_TASK_STACKS (62 * RTEMS_MINIMUM_STACK_SIZE)
  • c/src/tests/samples/unlimited/test1.c

    r6bd96fc7 r3d9f688e  
    2828  rtems_status_code result;
    2929  rtems_unsigned32  task_count = 0;
     30  rtems_unsigned32  expected_count;
    3031  Objects_Information *the_information;
    3132 
     
    4647  auto_extend = the_information->auto_extend;
    4748  the_information->auto_extend = FALSE;
    48  
     49  expected_count = the_information->inactive;
     50
    4951  while (task_count < MAX_TASKS)
    5052  {
     
    8789    printf( "\nMAX_TASKS too small for work-space size, please make larger !!\n\n" );
    8890   
    89   if (task_count != (TASK_ALLOCATION_SIZE - 1)) {
     91  if (task_count != expected_count) {
    9092    printf( " FAIL1 : the number of tasks does not equal the expected size -\n"
    9193            "           task created = %i, required number = %i\n",
     
    100102  printf( " TEST1 : completed\n" );
    101103}
    102 
    103 
    104 
    105 
    106 
  • testsuites/samples/ChangeLog

    r6bd96fc7 r3d9f688e  
     12002-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
    182002-11-05      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    29
  • testsuites/samples/unlimited/system.h

    r6bd96fc7 r3d9f688e  
    4747#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    4848
    49 #define TASK_ALLOCATION_SIZE     (5)
     49#define TASK_ALLOCATION_SIZE \
     50    (rtems_configuration_get_rtems_api_configuration()->maximum_tasks & \
     51                                    ~RTEMS_UNLIMITED_OBJECTS)
    5052#define CONFIGURE_MAXIMUM_TASKS  rtems_resource_unlimited(TASK_ALLOCATION_SIZE)
    5153#define CONFIGURE_EXTRA_TASK_STACKS (62 * RTEMS_MINIMUM_STACK_SIZE)
  • testsuites/samples/unlimited/test1.c

    r6bd96fc7 r3d9f688e  
    2828  rtems_status_code result;
    2929  rtems_unsigned32  task_count = 0;
     30  rtems_unsigned32  expected_count;
    3031  Objects_Information *the_information;
    3132 
     
    4647  auto_extend = the_information->auto_extend;
    4748  the_information->auto_extend = FALSE;
    48  
     49  expected_count = the_information->inactive;
     50
    4951  while (task_count < MAX_TASKS)
    5052  {
     
    8789    printf( "\nMAX_TASKS too small for work-space size, please make larger !!\n\n" );
    8890   
    89   if (task_count != (TASK_ALLOCATION_SIZE - 1)) {
     91  if (task_count != expected_count) {
    9092    printf( " FAIL1 : the number of tasks does not equal the expected size -\n"
    9193            "           task created = %i, required number = %i\n",
     
    100102  printf( " TEST1 : completed\n" );
    101103}
    102 
    103 
    104 
    105 
    106 
Note: See TracChangeset for help on using the changeset viewer.