summaryrefslogtreecommitdiffstats
path: root/testsuite/condvar01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-23 09:13:55 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-23 09:13:55 +0200
commitb5cdb953370e1868c6c030c9aca61f5e0d5aaaa8 (patch)
treec87758867315fbd769a9d6b742da94521fb3979f /testsuite/condvar01
parentrtems-bsd-mutex: Fix resource count updates (diff)
downloadrtems-libbsd-b5cdb953370e1868c6c030c9aca61f5e0d5aaaa8.tar.bz2
condvar01: Initialize mutex
Diffstat (limited to 'testsuite/condvar01')
-rw-r--r--testsuite/condvar01/test_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/condvar01/test_main.c b/testsuite/condvar01/test_main.c
index 53c98152..09c08fa4 100644
--- a/testsuite/condvar01/test_main.c
+++ b/testsuite/condvar01/test_main.c
@@ -371,6 +371,7 @@ test_main(void)
rtems_resource_snapshot_take(&snapshot);
+ mtx_init(&ctx->mtx, "test", NULL, MTX_DEF);
cv_init(&ctx->cv, "test");
assert(strcmp(cv_wmesg(&ctx->cv), "test") == 0);