diff options
Diffstat (limited to 'lldb/unittests/Protocol/ProtocolMCPServerTest.cpp')
| -rw-r--r-- | lldb/unittests/Protocol/ProtocolMCPServerTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/unittests/Protocol/ProtocolMCPServerTest.cpp b/lldb/unittests/Protocol/ProtocolMCPServerTest.cpp index 45464db..97f32e2f 100644 --- a/lldb/unittests/Protocol/ProtocolMCPServerTest.cpp +++ b/lldb/unittests/Protocol/ProtocolMCPServerTest.cpp @@ -150,8 +150,9 @@ public: /// Runs the MainLoop a single time, executing any pending callbacks. void Run() { - loop.AddPendingCallback( + bool addition_succeeded = loop.AddPendingCallback( [](MainLoopBase &loop) { loop.RequestTermination(); }); + EXPECT_TRUE(addition_succeeded); EXPECT_THAT_ERROR(loop.Run().takeError(), Succeeded()); } |
