Author: Walter Erquinigo Date: 2021-06-17T15:13:16-07:00 New Revision: c1360fd5fced42ea45ce1eacbf1c5e1ed54fcac5
URL: https://github.com/llvm/llvm-project/commit/c1360fd5fced42ea45ce1eacbf1c5e1ed54fcac5 DIFF: https://github.com/llvm/llvm-project/commit/c1360fd5fced42ea45ce1eacbf1c5e1ed54fcac5.diff LOG: [lldb-vscode] remove failed test Found in http://green.lab.llvm.org/green/job/lldb-cmake/32891/testReport/lldb-api/tools_lldb-vscode_launch/TestVSCode_launch_py/ the lldb-vscode changed and that test makes no sense anymore Added: Modified: lldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py Removed: ################################################################################ diff --git a/lldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py b/lldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py index c40e7e2dd4aa..593701e7ca64 100644 --- a/lldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py +++ b/lldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py @@ -455,65 +455,3 @@ def test_terminate_commands(self): self.vscode.request_disconnect(terminateDebuggee=True) output = self.collect_console(duration=1.0) self.verify_commands('terminateCommands', output, terminateCommands) - - - @skipIfWindows - @skipIfRemote - @skipIf(oslist=["linux"]) - def test_progress_events(self): - ''' - Tests the progress events to ensure we are receiving them. - ''' - program = self.getBuildArtifact("a.out") - self.build_and_launch(program) - # Set a breakpoint at 'main'. This will cause all of the symbol tables - # for all modules in LLDB to be parsed and we should get a progress - # event for each shared library. - breakpoint_ids = self.set_function_breakpoints(['main']) - self.continue_to_breakpoints(breakpoint_ids) - # Make sure we at least got some progress events - self.assertTrue(len(self.vscode.progress_events) > 0) - # Track all 'progressStart' events by saving all 'progressId' values. - progressStart_ids = set() - # Track all 'progressEnd' events by saving all 'progressId' values. - progressEnd_ids = set() - # We will watch for events whose title starts with - # 'Parsing symbol table for ' and we will save the remainder of the - # line which will contain the shared library basename. Since we set a - # breakpoint by name for 'main', we will expect to see progress events - # for all shared libraries that say that the symbol table is being - # parsed. - symtab_progress_shlibs = set() - # Get a list of modules in the current target so we can verify that - # we do in fact get a progress event for each shared library. - target_shlibs = self.vscode.get_modules() - - # Iterate over all progress events and save all start and end IDs, and - # remember any shared libraries that got symbol table parsing progress - # events. - # Sleep for 5 seconds to make sure progress_events gets populated - time.sleep(5) - for progress_event in self.vscode.progress_events: - event_type = progress_event['event'] - if event_type == 'progressStart': - progressStart_ids.add(progress_event['body']['progressId']) - title = progress_event['body']['title'] - if title.startswith('Parsing symbol table for '): - symtab_progress_shlibs.add(title[25:]) - if event_type == 'progressEnd': - progressEnd_ids.add(progress_event['body']['progressId']) - # Make sure for each 'progressStart' event, we got a matching - # 'progressEnd' event. - self.assertTrue(progressStart_ids == progressEnd_ids, - ('Make sure we got a "progressEnd" for each ' - '"progressStart" event that we have.')) - - ignored_libraries = {"[vdso]"} - - # Verify we got a symbol table parsing progress event for each shared - # library in our target. - for target_shlib_basename in target_shlibs.keys(): - if target_shlib_basename in ignored_libraries: - continue - self.assertIn(target_shlib_basename, symtab_progress_shlibs, - 'Make sure we got a symbol table progress event for "%s"' % (target_shlib_basename)) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits