Skip to content

Commit b9e549e

Browse files
committed
Try calling try_lock again
1 parent 32cbb92 commit b9e549e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/unittests/API/SBMutexTest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ TEST_F(SBMutexTest, LockTest) {
3838
lldb::SBMutex lock = target.GetAPIMutex();
3939

4040
ASSERT_TRUE(lock.try_lock());
41+
ASSERT_FALSE(lock.try_lock());
4142
lock.unlock();
4243

4344
std::lock_guard<lldb::SBMutex> lock_guard(lock);

0 commit comments

Comments
 (0)