Skip to content

Commit a48b0e9

Browse files
committed
Try calling try_lock when the mutex is locked
1 parent 32cbb92 commit a48b0e9

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
@@ -45,6 +45,7 @@ TEST_F(SBMutexTest, LockTest) {
4545

4646
f = std::async(std::launch::async, [&]() {
4747
ASSERT_TRUE(locked);
48+
EXPECT_FALSE(lock.try_lock());
4849
target.BreakpointCreateByName("foo", "bar");
4950
ASSERT_FALSE(locked);
5051
});

0 commit comments

Comments
 (0)