From ecc912f466d4e648d3f2ff83ee5ddbffe6dce35a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 7 Aug 1996 22:05:15 +0000 Subject: added more error cases to complete testing of pthread_equal when RTEMS_DEBUG is enabled. --- testsuites/psxtests/psx01/task.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'testsuites/psxtests/psx01') diff --git a/testsuites/psxtests/psx01/task.c b/testsuites/psxtests/psx01/task.c index 61095cf119..4ff3d8e450 100644 --- a/testsuites/psxtests/psx01/task.c +++ b/testsuites/psxtests/psx01/task.c @@ -44,6 +44,14 @@ void *Task_1_through_3( puts( "pthread_equal different case passed" ); assert( !status ); + puts( "pthread_equal first id bad" ); + status = pthread_equal( -1, Task_id ); + assert( status == 0); + + puts( "pthread_equal second id bad" ); + status = pthread_equal( Init_id, -1 ); + assert( status == 0); + puts( "*** END OF POSIX TEST 1 ***" ); exit( 0 ); -- cgit v1.2.3