aboutsummaryrefslogtreecommitdiffstats
path: root/test/testmtx.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/testmtx.c')
-rw-r--r--test/testmtx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testmtx.c b/test/testmtx.c
index f3023b87d..ddc32e7d5 100644
--- a/test/testmtx.c
+++ b/test/testmtx.c
@@ -428,7 +428,11 @@ static msg_t thread11(void *p) {
chMtxLock(&m2);
chMtxLock(&m1);
+#if CH_USE_CONDVARS_TIMEOUT
chCondWaitTimeout(&c1, TIME_INFINITE);
+#else
+ chCondWait(&c1);
+#endif
test_emit_token(*(char *)p);
chMtxUnlock();
chMtxUnlock();