Changeset 9700578 in rtems for testsuites


Ignore:
Timestamp:
10/30/95 21:54:45 (27 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c4808ca
Parents:
ea74482
Message:

SPARC port passes all tests

Location:
testsuites
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/sp04/task1.c

    rea74482 r9700578  
    3131  rtems_time_of_day time;
    3232  rtems_status_code status;
    33   rtems_unsigned32  start;
    34   rtems_unsigned32  end;
     33  rtems_unsigned32  start_time;
     34  rtems_unsigned32  end_time;
    3535
    3636  puts( "TA1 - rtems_task_suspend - on Task 2" );
     
    4242  directive_failed( status, "rtems_task_suspend of TA3" );
    4343
    44   status = rtems_clock_get( RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH, &start );
     44  status = rtems_clock_get( RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH, &start_time );
    4545  directive_failed( status, "rtems_clock_get" );
    4646
     
    4848
    4949  for ( ; ; ) {
    50     status = rtems_clock_get( RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH, &end );
     50    status = rtems_clock_get( RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH, &end_time );
    5151    directive_failed( status, "rtems_clock_get" );
    5252
    53     if ( end > (start + 2) )
     53    if ( end_time > (start_time + 2) )
    5454      break;
    5555  }
  • testsuites/sptests/sp09/screen09.c

    rea74482 r9700578  
    2626  rtems_isr_entry   old_service_routine;
    2727
    28   status = rtems_interrupt_catch( Service_routine, 500, &old_service_routine );
     28  status = rtems_interrupt_catch(
     29    Service_routine,
     30    ISR_INTERRUPT_MAXIMUM_VECTOR_NUMBER + 10,
     31    &old_service_routine
     32  );
    2933  fatal_directive_status(
    3034    status,
  • testsuites/sptests/sp11/sp11.scn

    rea74482 r9700578  
    1212TA2 - rtems_event_send - send RTEMS_EVENT_14 to TA1
    1313TA2 - rtems_clock_set - 08:15:00   02/12/1988
    14 TA2 - rtems_event_send - sending RTEMS_EVENT_10 to self after 5 seconds
     14TA2 - rtems_event_send - sending RTEMS_EVENT_10 to self after 4 seconds
    1515TA2 - rtems_event_receive - waiting forever on RTEMS_EVENT_10
    1616TA1 - RTEMS_EVENT_14 received - eventout => 00004000
  • testsuites/sptests/sp11/task2.c

    rea74482 r9700578  
    7474  directive_failed( status, "TA2 rtems_clock_set" );
    7575
    76   time.second += 5;
     76  time.second += 4;
    7777  puts(
    78     "TA2 - rtems_event_send - sending RTEMS_EVENT_10 to self after 5 seconds"
     78    "TA2 - rtems_event_send - sending RTEMS_EVENT_10 to self after 4 seconds"
    7979  );
    8080  status = rtems_timer_fire_when(
     
    8484    NULL
    8585  );
    86   directive_failed( status, "rtems_timer_fire_when after 5 seconds" );
     86  directive_failed( status, "rtems_timer_fire_when after 4 seconds" );
    8787
    8888  puts( "TA2 - rtems_event_receive - waiting forever on RTEMS_EVENT_10" );
  • testsuites/sptests/sp12/system.h

    rea74482 r9700578  
    5858#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
    5959
     60#define CONFIGURE_INIT_TASK_STACK_SIZE      (RTEMS_MINIMUM_STACK_SIZE * 2)
    6061#define CONFIGURE_MAXIMUM_SEMAPHORES         10
    6162#define CONFIGURE_TICKS_PER_TIMESLICE       100
  • testsuites/sptests/sp19/system.h

    rea74482 r9700578  
    3939#define CONFIGURE_SPTEST
    4040
     41#define CONFIGURE_INIT_TASK_ATTRIBUTES    RTEMS_FLOATING_POINT
     42
    4143#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
    4244#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
  • testsuites/sptests/sp20/init.c

    rea74482 r9700578  
    4545      Task_name[ index ],
    4646      Priorities[ index ],
    47       RTEMS_MINIMUM_STACK_SIZE,
     47      RTEMS_MINIMUM_STACK_SIZE * 4,
    4848      RTEMS_DEFAULT_MODES,
    4949      RTEMS_DEFAULT_ATTRIBUTES,
  • testsuites/sptests/sp24/init.c

    rea74482 r9700578  
    5353      Task_name[ index ],
    5454      1,
    55       RTEMS_MINIMUM_STACK_SIZE,
     55      RTEMS_MINIMUM_STACK_SIZE * 2,
    5656      RTEMS_DEFAULT_MODES,
    5757      RTEMS_DEFAULT_ATTRIBUTES,
  • testsuites/sptests/spsize/init.c

    rea74482 r9700578  
    3737  setvbuf(stdout, 0, _IONBF, 0);
    3838
     39  puts( "\n*** RTEMS SIZE PROGRAM ***" );
     40  size_rtems( 1 );
     41  puts( "*** END OF RTEMS SIZE PROGRAM ***" );
     42  exit( 0 );
     43#if 0
    3944  do {
    40     puts( "\n*** RTEMS SIZE PROGRAM ***" );
    4145    printf( "\n\nPlease select program mode:\n" );
    4246    printf( "  1) Print Formulas\n" );
     
    5357    }
    5458  } while ( FOREVER );
     59#endif
    5560}
  • testsuites/sptests/spsize/size.c

    rea74482 r9700578  
    391391#endif
    392392
     393#ifdef sparc
     394 
     395/* cpu.h */
     396uninitialized += (sizeof _CPU_Interrupt_stack_low) +
     397                 (sizeof _CPU_Interrupt_stack_high) +
     398                 (sizeof _CPU_Null_fp_context) +
     399                 (sizeof _CPU_Trap_Table_area);
     400
     401#ifdef erc32
     402uninitialized += (sizeof _ERC32_MEC_Timer_Control_Mirror);
     403#endif
     404
     405 
     406#endif
     407
     408
    393409#ifdef no_cpu
    394410
     
    422438                (sizeof _TOD_Days_since_last_leap_year);
    423439
     440#ifdef sparc
     441
     442initialized +=  (sizeof _CPU_Trap_slot_template);
     443
     444#endif
     445
    424446puts( "" );
    425 #ifdef i960CA
    426   print_formula();
    427 #else
     447
    428448  if ( mode == 0 ) help_size();
    429449  else             print_formula();
    430 #endif
    431450
    432451printf( "\n" );
  • testsuites/tmtests/tm08/task1.c

    rea74482 r9700578  
    199199
    200200  put_time(
    201     "rtems_task_set_note",
     201    "rtems_task_get_note",
    202202    end_time,
    203203    OPERATION_COUNT,
  • testsuites/tmtests/tm27/task1.c

    rea74482 r9700578  
    1010 *
    1111 *  $Id$
     12 */
     13
     14/*
     15 *  WARNING!!!!!!!!!   
     16 *
     17 *  THIS TEST USES INTERNAL RTEMS VARIABLES!!!
    1218 */
    1319
     
    3339  rtems_vector_number vector
    3440);
    35 
    36 /*
    37  *  INTERNAL RTEMS VARIABLES!!!
    38  */
    39 
    40 extern rtems_unsigned32 _Thread_Dispatch_disable_level;
    41 extern rtems_unsigned32 _Context_Switch_necessary;
    42 extern Chain_Control *_Thread_Ready_chain;
    43 extern rtems_tcb     *_Thread_Heir;
    4441
    4542rtems_task Init(
     
    170167  Timer_initialize();
    171168    Cause_tm27_intr();
    172   /* goes to Isr_handler */
    173 }
     169
     170  /*
     171   *  goes to Isr_handler and then returns
     172   */
     173
     174  puts( "*** END OF TEST 27 ***" );
     175  exit( 0 );
     176}
     177
     178/*
     179 *  NOTE:  When this task is executing, some of the assumptions made
     180 *         regarding the placement of the currently executing task's TCB
     181 *         on the ready chains have been violated.  At least the assumption
     182 *         that this task is at the head of the chain for its priority
     183 *         has been violated.
     184 */
    174185
    175186rtems_task Task_2(
     
    198209  );
    199210
    200   puts( "*** END OF TEST 27 ***" );
    201   exit( 0 );
     211  fflush( stdout );
     212
     213  /*
     214   *  Switch back to the other task to exit the test.
     215   */
     216
     217  _Thread_Dispatch_disable_level = 0;
     218 
     219  _Thread_Heir = (rtems_tcb *) _Thread_Ready_chain[254].first;
     220 
     221  _Context_Switch_necessary = 1;
     222
     223  _Thread_Dispatch();
     224
    202225}
    203226
Note: See TracChangeset for help on using the changeset viewer.