summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-12 20:00:02 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-12 20:00:02 +0000
commit221bd65cca147bf2c8cd1867db3c8e1fa0cae673 (patch)
tree1605dfe1d6edfacbe6d56d7870b44c9ff79a0c0d /testsuites
parentnanosleep: verify rqtp parameter is non-NULL. (diff)
downloadrtems-221bd65cca147bf2c8cd1867db3c8e1fa0cae673.tar.bz2
added test case for stack too large
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/psxtests/psx07/init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuites/psxtests/psx07/init.c b/testsuites/psxtests/psx07/init.c
index e46331d34f..830f82920c 100644
--- a/testsuites/psxtests/psx07/init.c
+++ b/testsuites/psxtests/psx07/init.c
@@ -32,6 +32,8 @@ void print_schedparam(
printf( "%s_POSIX_SPORADIC_SERVER is not defined\n" );
#endif
}
+
+extern rtems_configuration_table BSP_Configuration;
void *POSIX_Init(
void *argument
@@ -101,6 +103,11 @@ void *POSIX_Init(
status = pthread_create( &Task_id, &attr, Task_1, NULL );
assert( status == EINVAL );
+ attr.stacksize = BSP_Configuration.work_space_size;
+ puts( "Init: pthread_create - EINVAL (stacksize too large)" );
+ status = pthread_create( &Task_id, &attr, Task_1, NULL );
+ assert( status == EINVAL );
+
status = pthread_attr_init( &attr );
assert( !status );