added more error cases to complete testing of pthread_equal when

RTEMS_DEBUG is enabled.
This commit is contained in:
Joel Sherrill
1996-08-07 22:05:15 +00:00
parent 42418a9d3c
commit ecc912f466
2 changed files with 16 additions and 0 deletions

View File

@@ -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 );

View File

@@ -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 );