diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-07 22:05:15 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-07 22:05:15 +0000 |
commit | ecc912f466d4e648d3f2ff83ee5ddbffe6dce35a (patch) | |
tree | 1efae841f931017f39150ca6d02474b7e1c8411e /c/src/tests/psxtests/psx01/task.c | |
parent | added test cases for ESRCH from pthread_join and pthread_detach (diff) | |
download | rtems-ecc912f466d4e648d3f2ff83ee5ddbffe6dce35a.tar.bz2 |
added more error cases to complete testing of pthread_equal when
RTEMS_DEBUG is enabled.
Diffstat (limited to '')
-rw-r--r-- | c/src/tests/psxtests/psx01/task.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/c/src/tests/psxtests/psx01/task.c b/c/src/tests/psxtests/psx01/task.c index 61095cf119..4ff3d8e450 100644 --- a/c/src/tests/psxtests/psx01/task.c +++ b/c/src/tests/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 ); |