[rtems-libbsd commit] syscalls01: Fix sporadic test failures
Sebastian Huber
sebh at rtems.org
Mon Jul 2 07:17:16 UTC 2018
Module: rtems-libbsd
Branch: master
Commit: a1e4757a30d168095081b7aff66412f9f7d244b8
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=a1e4757a30d168095081b7aff66412f9f7d244b8
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Jul 2 09:16:14 2018 +0200
syscalls01: Fix sporadic test failures
---
testsuite/syscalls01/test_main.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/testsuite/syscalls01/test_main.c b/testsuite/syscalls01/test_main.c
index f2af2ac..a00151b 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();
More information about the vc
mailing list