[Lldb-commits] [PATCH] D99497: [LLDB] Fix sync issue in TestVSCode_launch.test_progress_events

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 29 11:53:53 PDT 2021

clayborg added a comment.

In D99497#2656502 <https://reviews.llvm.org/D99497#2656502>, @labath wrote:

> Isn't there a better way to ensure synchronization here? Maybe, executing some command (setting a breakpoint, for instance), that will ensure that all symbols have been parsed?

That is what I attempted do in the test: set a breakpoint at 'main' which should trigger all of the needed events. Then we run to a breakpoint and hit it. and after we hit this breakpoint, then we check the progress events.

One thing we could do to figure things out would be to dump the vscode.txt file for this test into the failing test. This would allow us to see what the packets looked like when a test fails. Is there a cleanup function or something we can do in the VS code tests that allows a test case to know it has an error and add some stuff to the test suite output??



More information about the lldb-commits mailing list