2009-09-25 Joel Sherrill <joel.sherrill@OARcorp.com>

* sp14/asr.c, sp14/sp14.doc, sp14/task1.c, sp14/task2.c: Adjust test to
	run when IO speed varies.
This commit is contained in:
Joel Sherrill
2009-09-25 13:26:35 +00:00
parent bce23bdc98
commit e731068271
5 changed files with 52 additions and 21 deletions

View File

@@ -1,3 +1,8 @@
2009-09-25 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp14/asr.c, sp14/sp14.doc, sp14/task1.c, sp14/task2.c: Adjust test to
run when IO speed varies.
2009-09-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp43/init.c, sp43/sp43.scn: Minor correction to test case so it hits

View File

@@ -35,6 +35,7 @@ rtems_asr Process_asr(
case RTEMS_SIGNAL_0:
case RTEMS_SIGNAL_1:
puts( "ASR - rtems_task_wake_after - yield processor" );
FLUSH_OUTPUT();
status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
directive_failed( status, "rtems_task_wake_after yield" );
break;
@@ -43,4 +44,5 @@ rtems_asr Process_asr(
break;
}
printf( "ASR - EXIT - signal => %08x\n", the_signal_set );
FLUSH_OUTPUT();
}

View File

@@ -1,23 +1,34 @@
#
# $Id$
#
# COPYRIGHT (c) 1989-1999.
# On-Line Applications Research Corporation (OAR).
#
# The license and distribution terms for this file may be
# found in the file LICENSE in this distribution or at
# http://www.rtems.com/license/LICENSE.
#
Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such file or directory
This file describes the directives and concepts tested by this test set.
test set name: test14
directives:
ex_init, ex_start, t_create, t_start, t_delete, tm_tick, i_return,
as_catch, as_return, as_send, tm_wkafter
concepts:
a. This test checks out the signal manager.
*** TEST 14 ***
TA1 - rtems_signal_catch - RTEMS_INTERRUPT_LEVEL( 3 )
TA1 - rtems_signal_send - RTEMS_SIGNAL_16 to self
ASR - ENTRY - signal => 00010000
ASR - EXIT - signal => 00010000
TA1 - rtems_signal_send - RTEMS_SIGNAL_0 to self
ASR - ENTRY - signal => 00000001
ASR - rtems_task_wake_after - yield processor
ASR - EXIT - signal => 00000001
TA1 - rtems_signal_catch - RTEMS_NO_ASR
<pause>
TA1 - rtems_signal_send - RTEMS_SIGNAL_1 to self
ASR - ENTRY - signal => 00000002
ASR - rtems_task_wake_after - yield processor
ASR - EXIT - signal => 00000002
TA1 - rtems_task_mode - disable ASRs
TA1 - sending signal to RTEMS_SELF from timer
TA1 - waiting for signal to arrive
TA1 - timer routine got the correct arguments
TA1 - rtems_task_mode - enable ASRs
ASR - ENTRY - signal => 00000008
ASR - EXIT - signal => 00000008
TA2 - rtems_signal_send - RTEMS_SIGNAL_17 to TA1
TA2 - rtems_task_wake_after - yield processor
TA2 - rtems_signal_send - RTEMS_SIGNAL_18 and RTEMS_SIGNAL_19 to TA1
TA2 - rtems_task_wake_after - yield processor
ASR - ENTRY - signal => 000e0000
ASR - EXIT - signal => 000e0000
TA1 - rtems_signal_catch - asraddr of NULL
TA1 - rtems_task_delete - delete self
*** END OF TEST 14 ***

View File

@@ -59,6 +59,8 @@ rtems_task Task_1(
status = rtems_signal_catch( Process_asr, RTEMS_NO_ASR );
directive_failed( status, "rtems_signal_catch" );
FLUSH_OUTPUT();
rtems_test_pause();
puts( "TA1 - rtems_signal_send - RTEMS_SIGNAL_1 to self" );
@@ -102,9 +104,13 @@ rtems_test_pause();
);
puts( "TA1 - rtems_task_mode - enable ASRs" );
FLUSH_OUTPUT();
status = rtems_task_mode( RTEMS_ASR, RTEMS_ASR_MASK, &previous_mode );
directive_failed( status, "rtems_task_mode" );
status = rtems_task_wake_after(2 * rtems_clock_get_ticks_per_second());
directive_failed( status, "rtems_task_wake_after" );
puts( "TA1 - rtems_signal_catch - asraddr of NULL" );
status = rtems_signal_catch( NULL, RTEMS_DEFAULT_MODES );
directive_failed( status, "rtems_signal_catch" );

View File

@@ -26,6 +26,9 @@ rtems_task Task_2(
{
rtems_status_code status;
status = rtems_task_wake_after(rtems_clock_get_ticks_per_second());
directive_failed( status, "rtems_task_wake_after" );
puts( "TA2 - rtems_signal_send - RTEMS_SIGNAL_17 to TA1" );
status = rtems_signal_send( Task_id[ 1 ], RTEMS_SIGNAL_17 );
directive_failed( status, "rtems_signal_send" );
@@ -39,9 +42,13 @@ rtems_task Task_2(
directive_failed( status, "rtems_signal_send" );
puts( "TA2 - rtems_task_wake_after - yield processor" );
FLUSH_OUTPUT();
status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
directive_failed( status, "rtems_task_wake_after" );
status = rtems_task_wake_after(2 * rtems_clock_get_ticks_per_second());
directive_failed( status, "rtems_task_wake_after" );
puts( "*** END OF TEST 14 ***" );
rtems_test_exit( 0 );
}