mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
added more error cases to complete testing of pthread_equal when
RTEMS_DEBUG is enabled.
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user