summaryrefslogtreecommitdiffstats
path: root/testsuites/mptests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-23 15:37:38 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-23 15:37:38 +0000
commit8b2ecf8546179dcdabbe691338ebcf3a43960663 (patch)
tree5837256081cce6ea30474b5cdbbf26f6821b362e /testsuites/mptests
parentadded code to insure that delay is always non-zero (diff)
downloadrtems-8b2ecf8546179dcdabbe691338ebcf3a43960663.tar.bz2
updates from Tony Bennett
Diffstat (limited to 'testsuites/mptests')
-rw-r--r--testsuites/mptests/mp07/task1.c10
-rw-r--r--testsuites/mptests/mp14/exit.c7
2 files changed, 16 insertions, 1 deletions
diff --git a/testsuites/mptests/mp07/task1.c b/testsuites/mptests/mp07/task1.c
index 70fc8c73c5..c5e3af0063 100644
--- a/testsuites/mptests/mp07/task1.c
+++ b/testsuites/mptests/mp07/task1.c
@@ -72,7 +72,7 @@ rtems_task Test_task(
directive_failed( status, "rtems_timer_fire_after" );
while ( Stop_Test == FALSE ) {
- for ( count=DOT_COUNT ; count ; count-- ) {
+ for ( count=DOT_COUNT ; count && (Stop_Test == FALSE) ; count-- ) {
status = rtems_event_receive(
RTEMS_EVENT_16,
RTEMS_DEFAULT_OPTIONS,
@@ -90,6 +90,14 @@ rtems_task Test_task(
}
put_dot('.');
}
+
+ /*
+ * Wait a bit before shutting down so we don't screw up the other node
+ * when our MPCI shuts down
+ */
+
+ rtems_task_wake_after(10);
+
puts( "\n*** END OF TEST 7 ***" );
exit( 0 );
}
diff --git a/testsuites/mptests/mp14/exit.c b/testsuites/mptests/mp14/exit.c
index 65fc0df49f..38b0e327e2 100644
--- a/testsuites/mptests/mp14/exit.c
+++ b/testsuites/mptests/mp14/exit.c
@@ -24,6 +24,13 @@ void Exit_test( void )
rtems_status_code status;
rtems_mode old_mode;
+ /*
+ * Wait a bit before shutting down so we don't screw up the other node
+ * when our MPCI shuts down
+ */
+
+ rtems_task_wake_after(20);
+
status = rtems_task_mode( RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &old_mode );
directive_failed( status, "rtems_task_mode" );