summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx01
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-07 22:05:15 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-07 22:05:15 +0000
commitecc912f466d4e648d3f2ff83ee5ddbffe6dce35a (patch)
tree1efae841f931017f39150ca6d02474b7e1c8411e /testsuites/psxtests/psx01
parentadded test cases for ESRCH from pthread_join and pthread_detach (diff)
downloadrtems-ecc912f466d4e648d3f2ff83ee5ddbffe6dce35a.tar.bz2
added more error cases to complete testing of pthread_equal when
RTEMS_DEBUG is enabled.
Diffstat (limited to 'testsuites/psxtests/psx01')
-rw-r--r--testsuites/psxtests/psx01/task.c8
1 files changed, 8 insertions, 0 deletions
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 );