summaryrefslogtreecommitdiffstats
path: root/cpukit/libtest/t-test-rtems-context.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libtest/t-test-rtems-context.c')
-rw-r--r--cpukit/libtest/t-test-rtems-context.c24
1 files changed, 21 insertions, 3 deletions
diff --git a/cpukit/libtest/t-test-rtems-context.c b/cpukit/libtest/t-test-rtems-context.c
index 8d33d08866..1405db0c7d 100644
--- a/cpukit/libtest/t-test-rtems-context.c
+++ b/cpukit/libtest/t-test-rtems-context.c
@@ -1,7 +1,16 @@
-/*
- * SPDX-License-Identifier: BSD-2-Clause
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ * @file
*
- * Copyright (C) 2019 embedded brains GmbH
+ * @ingroup RTEMSTestFrameworkImpl
+ *
+ * @brief This source file contains the implementation of
+ * T_check_task_context().
+ */
+
+/*
+ * Copyright (C) 2019 embedded brains GmbH & Co. KG
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -63,6 +72,7 @@ T_do_check_task_context(void)
rtems_task_priority prio;
rtems_status_code sc;
uint32_t v;
+ rtems_event_set events;
#ifdef RTEMS_SMP
rtems_id id;
#endif
@@ -95,6 +105,14 @@ T_do_check_task_context(void)
T_check(&T_special, prio == T_runner_priority,
"Wrong runner priority, expected %" PRIu32 ", actual %"
PRIu32, T_runner_priority, prio);
+
+ sc = rtems_event_receive(RTEMS_ALL_EVENTS,
+ RTEMS_NO_WAIT | RTEMS_EVENT_ANY, 0, &events);
+ T_quiet_rsc( sc, RTEMS_UNSATISFIED );
+
+ sc = rtems_event_system_receive(RTEMS_ALL_EVENTS,
+ RTEMS_NO_WAIT | RTEMS_EVENT_ANY, 0, &events);
+ T_quiet_rsc( sc, RTEMS_UNSATISFIED );
}
void