diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-02-21 23:44:10 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-02-21 23:44:10 +0000 |
commit | 8c5c2cce59b139b3d9c15c8503f1795a5638d87f (patch) | |
tree | 80df07608f09aef88fef62e49da403e0022e1840 /testsuites/samples/loopback/init.c | |
parent | 2007-02-21 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-8c5c2cce59b139b3d9c15c8503f1795a5638d87f.tar.bz2 |
2007-02-21 Joel Sherrill <joel@OARcorp.com>
* loopback/init.c: Fix exit paths in client thread and main test
thread.
Diffstat (limited to '')
-rw-r--r-- | testsuites/samples/loopback/init.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuites/samples/loopback/init.c b/testsuites/samples/loopback/init.c index dec5981a17..7294275bbf 100644 --- a/testsuites/samples/loopback/init.c +++ b/testsuites/samples/loopback/init.c @@ -220,6 +220,7 @@ static rtems_task clientTask(rtems_task_argument arg) { clientWorker(arg); printf("Client task terminating.\n"); + rtems_task_delete( RTEMS_SELF ); } /* @@ -263,5 +264,7 @@ Init (rtems_task_argument ignored) spawnTask(clientTask, 120, 5); spawnTask(clientTask, 120, 6); - rtems_task_suspend(RTEMS_SELF); + rtems_task_wake_after(500); + puts( "*** END OF LOOPBACK TEST ***" ); + exit( 0 ); } |