diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-26 16:05:45 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-05-02 07:11:03 +0200 |
commit | b422aa3f4a8ecb27bc76c3c5f29d34e007564315 (patch) | |
tree | 3306e82c8ea3b7d6247d94f8fc04d1953725fe8d /testsuites/psxtests/psx07/init.c | |
parent | Drop executable permissions on .[ch] files (diff) | |
download | rtems-b422aa3f4a8ecb27bc76c3c5f29d34e007564315.tar.bz2 |
tests: Remove configure feature checks
Update #3409.
Diffstat (limited to 'testsuites/psxtests/psx07/init.c')
-rw-r--r-- | testsuites/psxtests/psx07/init.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/testsuites/psxtests/psx07/init.c b/testsuites/psxtests/psx07/init.c index be5208b32f..2c370a9869 100644 --- a/testsuites/psxtests/psx07/init.c +++ b/testsuites/psxtests/psx07/init.c @@ -56,9 +56,7 @@ void *POSIX_Init( int inheritsched; int schedpolicy; size_t stacksize; -#if HAVE_DECL_PTHREAD_ATTR_SETGUARDSIZE size_t guardsize; -#endif void *stackaddr; int detachstate; struct sched_param schedparam; @@ -122,12 +120,10 @@ void *POSIX_Init( status = pthread_attr_init( &attr ); posix_service_failed( status, "pthread_attr_init"); -#if HAVE_DECL_PTHREAD_ATTR_SETSTACKADDR attr.stacksize = rtems_configuration_get_work_space_size() * 10; puts( "Init - pthread_create - EAGAIN (stacksize too large)" ); status = pthread_create( &Task_id, &attr, Task_1, NULL ); fatal_directive_check_status_only( status, EAGAIN, "stacksize too large" ); -#endif status = pthread_attr_init( &attr ); posix_service_failed( status, "pthread_attr_init"); @@ -364,7 +360,6 @@ void *POSIX_Init( /* exercise get and set stack (as pair) */ empty_line(); -#if HAVE_DECL_PTHREAD_ATTR_SETSTACK puts( "Init - pthread_attr_setstack- EINVAL (NULL attr)" ); status = pthread_attr_setstack( NULL, &stackaddr, 1024 ); fatal_directive_check_status_only( status, EINVAL, "NULL attr" ); @@ -380,9 +375,7 @@ void *POSIX_Init( puts( "Init - pthread_attr_setstack- SUCCESSFUL (big stack)" ); status = pthread_attr_setstack( &attr, stackaddr, STACK_MINIMUM_SIZE * 2 ); posix_service_failed( status, "OK"); -#endif -#if HAVE_DECL_PTHREAD_ATTR_GETSTACK puts( "Init - pthread_attr_getstack- EINVAL (NULL attr)" ); status = pthread_attr_getstack( NULL, &stackaddr, &stacksize ); fatal_directive_check_status_only( status, EINVAL, "NULL attr" ); @@ -402,12 +395,10 @@ void *POSIX_Init( puts( "Init - pthread_attr_getstack- SUCCESSFUL" ); status = pthread_attr_getstack( &attr, &stackaddr, &stacksize ); posix_service_failed( status, "pthread_attr_getstack"); -#endif /* exercise get and set detach state */ empty_line(); -#if HAVE_DECL_PTHREAD_ATTR_SETGUARDSIZE puts( "Init - pthread_attr_setguardsize - EINVAL (NULL attr)" ); status = pthread_attr_setguardsize( NULL, 0 ); fatal_directive_check_status_only( status, EINVAL, "NULL attr" ); @@ -423,9 +414,7 @@ void *POSIX_Init( puts( "Init - pthread_attr_setguardsize - SUCCESSFUL (high guardsize)" ); status = pthread_attr_setguardsize( &attr, STACK_MINIMUM_SIZE * 2 ); posix_service_failed( status, ""); -#endif -#if HAVE_DECL_PTHREAD_ATTR_GETGUARDSIZE puts( "Init - pthread_attr_getguardsize - EINVAL (NULL attr)" ); status = pthread_attr_getguardsize( NULL, &guardsize ); fatal_directive_check_status_only( status, EINVAL, "NULL attr" ); @@ -441,7 +430,6 @@ void *POSIX_Init( puts( "Init - pthread_attr_getguardsize - SUCCESSFUL" ); status = pthread_attr_getguardsize( &attr, &guardsize ); posix_service_failed( status, "pthread_attr_getguardsize"); -#endif /* exercise get and set detach state */ empty_line(); |