From 15974b65ea61303110208353e15375a5d78d9121 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 4 Jun 1996 14:32:21 +0000 Subject: added basic test cases for pthread_self and pthread_equal --- testsuites/psxtests/psx01/init.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'testsuites/psxtests/psx01/init.c') diff --git a/testsuites/psxtests/psx01/init.c b/testsuites/psxtests/psx01/init.c index 98fb6d41ac..5a3d387802 100644 --- a/testsuites/psxtests/psx01/init.c +++ b/testsuites/psxtests/psx01/init.c @@ -113,6 +113,11 @@ void *POSIX_Init( printf( "sec (%d), nsec (%d) remaining\n", (int)tr.tv_sec, (int)tr.tv_nsec ); assert( !tr.tv_sec && !tr.tv_nsec ); + /* get id of this thread */ + + Init_id = pthread_self(); + printf( "Init's ID is 0x%08x\n", Init_id ); + /* create a thread */ status = pthread_create( &thread_id, NULL, Task_1_through_3, NULL ); -- cgit v1.2.3