summaryrefslogtreecommitdiffstats
path: root/testsuites/mptests/mp14/smtask1.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1995-09-19 21:44:33 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1995-09-19 21:44:33 +0000
commit2122a0b7f4fe54c17a976b184ce13d4a48c60653 (patch)
tree9a9f2bc43aa868a6920913b5d704b3e217f1a50d /testsuites/mptests/mp14/smtask1.c
parentModifications from Tony Bennett accepted to return aligned block. (diff)
downloadrtems-2122a0b7f4fe54c17a976b184ce13d4a48c60653.tar.bz2
Modifications from Tony Bennett accepted to tune this test a little.
Diffstat (limited to '')
-rw-r--r--testsuites/mptests/mp14/smtask1.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/testsuites/mptests/mp14/smtask1.c b/testsuites/mptests/mp14/smtask1.c
index c4d71c0101..5bb14ee0da 100644
--- a/testsuites/mptests/mp14/smtask1.c
+++ b/testsuites/mptests/mp14/smtask1.c
@@ -40,10 +40,12 @@ rtems_task Semaphore_task(
if ( status == RTEMS_SUCCESSFUL )
break;
puts( "rtems_semaphore_ident FAILED!!" );
+ rtems_task_wake_after(2);
}
+ yield_count = 100;
+
while ( Stop_Test == FALSE ) {
- yield_count = 100;
for ( count=SEMAPHORE_DOT_COUNT ; Stop_Test == FALSE && count ; count-- ) {
status = rtems_semaphore_obtain(
@@ -56,12 +58,13 @@ rtems_task Semaphore_task(
status = rtems_semaphore_release( Semaphore_id[ 1 ] );
directive_failed( status, "rtems_semaphore_release" );
- if ( Multiprocessing_configuration.node == 1 && --yield_count == 0 ) {
- status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
- directive_failed( status, "rtems_task_wake_after" );
+ if ( Stop_Test == FALSE )
+ if ( Multiprocessing_configuration.node == 1 && --yield_count == 0 ) {
+ status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
+ directive_failed( status, "rtems_task_wake_after" );
- yield_count = 100;
- }
+ yield_count = 100;
+ }
}
put_dot( 's' );
}