summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/tests/psxtests/psx07/init.c4
-rw-r--r--testsuites/psxtests/psx07/init.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/c/src/tests/psxtests/psx07/init.c b/c/src/tests/psxtests/psx07/init.c
index 2d3859ad3c..9d11cd578a 100644
--- a/c/src/tests/psxtests/psx07/init.c
+++ b/c/src/tests/psxtests/psx07/init.c
@@ -99,9 +99,9 @@ void *POSIX_Init(
/* must go around pthread_attr_setstacksize to set a bad stack size */
attr.stacksize = 0;
- puts( "Init: pthread_create - EINVAL (stacksize too small)" );
+ puts( "Init: pthread_create - EAGAIN (stacksize too small)" );
status = pthread_create( &Task_id, &attr, Task_1, NULL );
- assert( status == EINVAL );
+ assert( status == EAGAIN );
attr.stacksize = BSP_Configuration.work_space_size;
puts( "Init: pthread_create - EINVAL (stacksize too large)" );
diff --git a/testsuites/psxtests/psx07/init.c b/testsuites/psxtests/psx07/init.c
index 2d3859ad3c..9d11cd578a 100644
--- a/testsuites/psxtests/psx07/init.c
+++ b/testsuites/psxtests/psx07/init.c
@@ -99,9 +99,9 @@ void *POSIX_Init(
/* must go around pthread_attr_setstacksize to set a bad stack size */
attr.stacksize = 0;
- puts( "Init: pthread_create - EINVAL (stacksize too small)" );
+ puts( "Init: pthread_create - EAGAIN (stacksize too small)" );
status = pthread_create( &Task_id, &attr, Task_1, NULL );
- assert( status == EINVAL );
+ assert( status == EAGAIN );
attr.stacksize = BSP_Configuration.work_space_size;
puts( "Init: pthread_create - EINVAL (stacksize too large)" );