summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx05/task.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-07-04 17:38:55 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-07-04 17:38:55 +0000
commitce78b89451d7c2b44afbe1796d6e3c6403970650 (patch)
tree75d55be6d4478b1f607948b86dd550528e468dfb /testsuites/psxtests/psx05/task.c
parentfirst test cases for mutex manager pass (diff)
downloadrtems-ce78b89451d7c2b44afbe1796d6e3c6403970650.tar.bz2
added test case for timeout using pthread_mutex_timedlock
Diffstat (limited to 'testsuites/psxtests/psx05/task.c')
-rw-r--r--testsuites/psxtests/psx05/task.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuites/psxtests/psx05/task.c b/testsuites/psxtests/psx05/task.c
index 9e0fa7d333..2c687744ea 100644
--- a/testsuites/psxtests/psx05/task.c
+++ b/testsuites/psxtests/psx05/task.c
@@ -40,8 +40,14 @@ void *Task_1_through_3(
printf( "status = %d\n", status );
assert( !status );
+ /* switch to init */
+
printf( "Task: mutex acquired\n" );
+ printf( "Task: sleep for 2 seconds\n" );
+ sleep( 2 );
+
+ /* switch to init */
printf( "Task: exit\n" );
pthread_exit( NULL );