[rtems-libbsd commit] epoch01: Fix sporadic test failures
Sebastian Huber
sebh at rtems.org
Tue Jun 23 12:11:38 UTC 2020
Module: rtems-libbsd
Branch: master
Commit: 2036cf9616e91271685a781090d6878eaf9366d7
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=2036cf9616e91271685a781090d6878eaf9366d7
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jun 23 14:10:06 2020 +0200
epoch01: Fix sporadic test failures
---
testsuite/epoch01/test_main.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/testsuite/epoch01/test_main.c b/testsuite/epoch01/test_main.c
index 98ae006..f979a2f 100644
--- a/testsuite/epoch01/test_main.c
+++ b/testsuite/epoch01/test_main.c
@@ -110,9 +110,13 @@ static void
test_fini(rtems_test_parallel_context *base, const char *name,
size_t active_workers)
{
+ rtems_status_code sc;
test_context *ctx;
size_t i;
+ sc = rtems_task_wake_after(CK_EPOCH_LENGTH);
+ assert(sc == RTEMS_SUCCESSFUL);
+
ctx = (test_context *)base;
printf(" <%s activeWorker=\"%zu\">\n", name, active_workers);
More information about the vc
mailing list