summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/tests/psxtests/psx01/task.c8
-rw-r--r--testsuites/psxtests/psx01/task.c8
2 files changed, 16 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 );
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 );