summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxconfig01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-10-25 14:08:26 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-10-29 10:52:48 +0100
commit8dc1ed135a27fd0ee0135bb6e9f1a5fd7e709ebb (patch)
tree55a3c222ac8de1913abca4c9471361f05d9fd425 /testsuites/psxtests/psxconfig01
parentposix: Enable more smptests tests by default (diff)
downloadrtems-8dc1ed135a27fd0ee0135bb6e9f1a5fd7e709ebb.tar.bz2
posix: Enable more psxtests by default
Update #2514.
Diffstat (limited to 'testsuites/psxtests/psxconfig01')
-rw-r--r--testsuites/psxtests/psxconfig01/init.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/testsuites/psxtests/psxconfig01/init.c b/testsuites/psxtests/psxconfig01/init.c
index 70e489823b..032d90ba0d 100644
--- a/testsuites/psxtests/psxconfig01/init.c
+++ b/testsuites/psxtests/psxconfig01/init.c
@@ -63,14 +63,18 @@ const char rtems_test_name[] = "PSXCONFIG 1";
#define CONFIGURE_MAXIMUM_USER_EXTENSIONS 17
#define POSIX_MQ_COUNT 5
+#ifdef RTEMS_POSIX_API
#define CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS 7
+#endif
#define CONFIGURE_MAXIMUM_POSIX_SEMAPHORES 41
#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
#define CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZE CPU_STACK_MINIMUM_SIZE
#define CONFIGURE_MAXIMUM_POSIX_THREADS 3
+#ifdef RTEMS_POSIX_API
#define CONFIGURE_MAXIMUM_POSIX_TIMERS 47
+#endif
#ifndef CONFIGURE_MAXIMUM_TASKS
#define CONFIGURE_MAXIMUM_TASKS 1
@@ -242,7 +246,6 @@ static rtems_task Init(rtems_task_argument argument)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
int eno = 0;
- int rv = 0;
rtems_id id = RTEMS_ID_NONE;
rtems_name name = rtems_build_name('C', 'O', 'N', 'F');
rtems_extensions_table table;
@@ -491,6 +494,8 @@ static rtems_task Init(rtems_task_argument argument)
#ifdef CONFIGURE_MAXIMUM_POSIX_TIMERS
for (i = 0; i < CONFIGURE_MAXIMUM_POSIX_TIMERS; ++i) {
timer_t timer_id;
+ int rv;
+
rv = timer_create(CLOCK_REALTIME, NULL, &timer_id);
rtems_test_assert(rv == 0);
}