diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-02 09:16:14 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-02 09:16:40 +0200 |
commit | a1e4757a30d168095081b7aff66412f9f7d244b8 (patch) | |
tree | e94462e3ed1753d013cfda1df230e519febb46c8 /testsuite/syscalls01/test_main.c | |
parent | rtems_waf: Fix show-commands option. (diff) | |
download | rtems-libbsd-a1e4757a30d168095081b7aff66412f9f7d244b8.tar.bz2 |
syscalls01: Fix sporadic test failures
Diffstat (limited to '')
-rw-r--r-- | testsuite/syscalls01/test_main.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/syscalls01/test_main.c b/testsuite/syscalls01/test_main.c index f2af2ac8..a00151bf 100644 --- a/testsuite/syscalls01/test_main.c +++ b/testsuite/syscalls01/test_main.c @@ -1599,10 +1599,24 @@ test_setgethostname(void) assert(in[sizeof(in) - 1] == '\0'); } +static void set_self_prio(rtems_task_priority prio) +{ + rtems_status_code sc; + + sc = rtems_task_set_priority(RTEMS_SELF, prio, &prio); + assert(sc == RTEMS_SUCCESSFUL); +} + static void test_main(void) { + /* + * No interruptions by the timer server. The uma_timeout() may need + * some dynamic memory. This could disturb the no memory tests. + */ + set_self_prio(1); + /* Must be first test to ensure resource checks work */ test_sockets(); |