aboutsummaryrefslogtreecommitdiffstats
path: root/test/testmtx.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/testmtx.c')
-rw-r--r--test/testmtx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/testmtx.c b/test/testmtx.c
index 339403127..9ca9edc85 100644
--- a/test/testmtx.c
+++ b/test/testmtx.c
@@ -452,6 +452,11 @@ static void mtx5_execute(void) {
test_assert(3, isempty(&m1.m_queue), "queue not empty");
test_assert(4, m1.m_owner == NULL, "still owned");
test_assert(5, chThdGetPriority() == prio, "wrong priority level");
+
+ chMtxLock(&m1);
+ chMtxUnlockAll();
+ test_assert(6, isempty(&m1.m_queue), "queue not empty");
+ test_assert(7, m1.m_owner == NULL, "still owned");
}
ROMCONST struct testcase testmtx5 = {