Add a missing call to lock_wait in test function

This was uncovered when I tried to run other code with ThreadSan, but it
only found this. :(
This commit is contained in:
heinrich5991 2018-01-05 16:06:24 +01:00
parent 32f919eee0
commit c9fc487c43

View file

@ -75,6 +75,7 @@ static void LockThread(void *pUser)
TEST(Thread, Lock)
{
LOCK Lock = lock_create();
lock_wait(Lock);
void *pThread = thread_init(LockThread, &Lock);
lock_unlock(Lock);
thread_wait(pThread);