mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-10 01:23:22 +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" );
|
puts( "pthread_equal different case passed" );
|
||||||
assert( !status );
|
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 ***" );
|
puts( "*** END OF POSIX TEST 1 ***" );
|
||||||
exit( 0 );
|
exit( 0 );
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,14 @@ void *Task_1_through_3(
|
|||||||
puts( "pthread_equal different case passed" );
|
puts( "pthread_equal different case passed" );
|
||||||
assert( !status );
|
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 ***" );
|
puts( "*** END OF POSIX TEST 1 ***" );
|
||||||
exit( 0 );
|
exit( 0 );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user