Previously each test was annotated manually. This does the same thing.
@skipIfWindows
@skipIfNetBSD # Hangs on NetBSD as well
- @no_debug_info_test
def test_by_pid(self):
'''
Tests attaching to a process by process ID.
@skipIfWindows
@skipIfNetBSD # Hangs on NetBSD as well
- @no_debug_info_test
def test_by_name(self):
'''
Tests attaching to a process by process name.
@skipUnlessDarwin
@skipIfDarwin
@skipIfNetBSD # Hangs on NetBSD as well
- @no_debug_info_test
def test_by_name_waitFor(self):
'''
Tests attaching to a process by process name and waiting for the
@skipIfWindows
@skipIfDarwin
@skipIfNetBSD # Hangs on NetBSD as well
- @no_debug_info_test
def test_commands(self):
'''
Tests the "initCommands", "preRunCommands", "stopCommands",
mydir = TestBase.compute_mydir(__file__)
@skipIfWindows
- @no_debug_info_test
def test_set_and_clear(self):
'''Tests setting and clearing source file and line breakpoints.
This packet is a bit tricky on the debug adaptor side since there
"expect breakpoint still verified")
@skipIfWindows
- @no_debug_info_test
def test_functionality(self):
'''Tests hitting breakpoints and the functionality of a single
breakpoint, like 'conditions' and 'hitCondition' settings.'''
@skipIfWindows
@expectedFailureNetBSD
- @no_debug_info_test
def test_functionality(self):
'''Tests setting and clearing exception breakpoints.
This packet is a bit tricky on the debug adaptor side since there
mydir = TestBase.compute_mydir(__file__)
@skipIfWindows
- @no_debug_info_test
def test_set_and_clear(self):
'''Tests setting and clearing function breakpoints.
This packet is a bit tricky on the debug adaptor side since there
"expect %u source breakpoints" % (len(functions)))
@skipIfWindows
- @no_debug_info_test
def test_functionality(self):
'''Tests hitting breakpoints and the functionality of a single
breakpoint, like 'conditions' and 'hitCondition' settings.'''
@skipIfWindows
@skipIfDarwin # Skip this test for now until we can figure out why tings aren't working on build bots
- @no_debug_info_test
def test_completions(self):
"""
Tests the completion request at different breakpoints
@skipIfWindows
@skipIfDarwin # Flaky
- @no_debug_info_test
def test_default(self):
'''
Tests the default launch of a simple program. No arguments,
"make sure program path is in first argument")
@skipIfWindows
- @no_debug_info_test
def test_stopOnEntry(self):
'''
Tests the default launch of a simple program that stops at the
'verify stop isn\'t "main" breakpoint')
@skipIfWindows
- @no_debug_info_test
def test_cwd(self):
'''
Tests the default launch of a simple program with a current working
self.assertTrue(found, "verified program working directory")
@skipIfWindows
- @no_debug_info_test
def test_debuggerRoot(self):
'''
Tests the "debuggerRoot" will change the working directory of
self.continue_to_exit()
@skipIfWindows
- @no_debug_info_test
def test_sourcePath(self):
'''
Tests the "sourcePath" will set the target.source-map.
self.continue_to_exit()
@skipIfWindows
- @no_debug_info_test
def test_disableSTDIO(self):
'''
Tests the default launch of a simple program with STDIO disabled.
@skipIfWindows
@skipIfLinux # shell argument expansion doesn't seem to work on Linux
@expectedFailureNetBSD
- @no_debug_info_test
def test_shellExpandArguments_enabled(self):
'''
Tests the default launch of a simple program with shell expansion
glob, program))
@skipIfWindows
- @no_debug_info_test
def test_shellExpandArguments_disabled(self):
'''
Tests the default launch of a simple program with shell expansion
glob, glob))
@skipIfWindows
- @no_debug_info_test
def test_args(self):
'''
Tests launch of a simple program with arguments
'arg[%i] "%s" not in "%s"' % (i+1, quoted_arg, lines[i]))
@skipIfWindows
- @no_debug_info_test
def test_environment(self):
'''
Tests launch of a simple program with environment variables
var, lines))
@skipIfWindows
- @no_debug_info_test
def test_commands(self):
'''
Tests the "initCommands", "preRunCommands", "stopCommands" and
self.verify_commands('exitCommands', output, exitCommands)
@skipIfWindows
- @no_debug_info_test
def test_extra_launch_commands(self):
'''
Tests the "luanchCommands" with extra launching settings
class VSCodeTestCaseBase(TestBase):
+ NO_DEBUG_INFO_TESTCASE = True
+
def create_debug_adaptor(self):
'''Create the Visual Studio Code debug adaptor'''
self.assertTrue(os.path.exists(self.lldbVSCodeExec),
expected_line))
@skipIfWindows
- @no_debug_info_test
def test_stackTrace(self):
'''
Tests the 'stackTrace' packet and all its variants.
mydir = TestBase.compute_mydir(__file__)
@skipIfWindows
- @no_debug_info_test
def test_step(self):
'''
Tests the stepping in/out/over in threads.
self.verify_values(verify_dict[name], variable, varref_dict)
@skipIfWindows
- @no_debug_info_test
def test_scopes_variables_setVariable_evaluate(self):
'''
Tests the "scopes", "variables", "setVariable", and "evaluate"