summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxgetattrnp01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-04-26 16:05:45 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-05-02 07:11:03 +0200
commitb422aa3f4a8ecb27bc76c3c5f29d34e007564315 (patch)
tree3306e82c8ea3b7d6247d94f8fc04d1953725fe8d /testsuites/psxtests/psxgetattrnp01
parentDrop executable permissions on .[ch] files (diff)
downloadrtems-b422aa3f4a8ecb27bc76c3c5f29d34e007564315.tar.bz2
tests: Remove configure feature checks
Update #3409.
Diffstat (limited to 'testsuites/psxtests/psxgetattrnp01')
-rw-r--r--testsuites/psxtests/psxgetattrnp01/init.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/testsuites/psxtests/psxgetattrnp01/init.c b/testsuites/psxtests/psxgetattrnp01/init.c
index 3c7c886e8d..986c650b56 100644
--- a/testsuites/psxtests/psxgetattrnp01/init.c
+++ b/testsuites/psxtests/psxgetattrnp01/init.c
@@ -23,9 +23,6 @@ const char rtems_test_name[] = "PSXGETATTRNP 1";
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
-#if HAVE_DECL_PTHREAD_GETATTR_NP
-
-
void *Thread_1(void *argument);
pthread_t Init_id;
@@ -65,10 +62,8 @@ static int attribute_compare(
if ( attr1->schedparam.sched_priority != attr2->schedparam.sched_priority )
return 1;
- #if HAVE_DECL_PTHREAD_ATTR_SETGUARDSIZE
- if ( attr1->guardsize != attr2->guardsize )
- return 1;
- #endif
+ if ( attr1->guardsize != attr2->guardsize )
+ return 1;
#if defined(_POSIX_THREAD_CPUTIME)
if ( attr1->cputime_clock_allowed != attr2->cputime_clock_allowed )
@@ -270,19 +265,7 @@ void *POSIX_Init(
rtems_test_exit(0);
return NULL; /* just so the compiler thinks we returned something */
}
-#else
-void *POSIX_Init(
- void *ignored
-)
-{
- TEST_BEGIN();
- puts( " pthread_getattr_np NOT supported" );
- TEST_END();
- rtems_test_exit(0);
- return NULL; /* just so the compiler thinks we returned something */
-}
-#endif
/* configuration information */
#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER