[lldb-vscode] Centrally skip debug info variants for vscode tests

Previously each test was annotated manually. This does the same thing.
This commit is contained in:
Pavel Labath 2019-12-16 14:15:11 +01:00
parent 6e1fe4966c
commit dcd14324dc
10 changed files with 2 additions and 25 deletions

View File

@ -46,7 +46,6 @@ class TestVSCode_attach(lldbvscode_testcase.VSCodeTestCaseBase):
@skipIfWindows
@skipIfNetBSD # Hangs on NetBSD as well
@no_debug_info_test
def test_by_pid(self):
'''
Tests attaching to a process by process ID.
@ -62,7 +61,6 @@ class TestVSCode_attach(lldbvscode_testcase.VSCodeTestCaseBase):
@skipIfWindows
@skipIfNetBSD # Hangs on NetBSD as well
@no_debug_info_test
def test_by_name(self):
'''
Tests attaching to a process by process name.
@ -101,7 +99,6 @@ class TestVSCode_attach(lldbvscode_testcase.VSCodeTestCaseBase):
@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
@ -119,7 +116,6 @@ class TestVSCode_attach(lldbvscode_testcase.VSCodeTestCaseBase):
@skipIfWindows
@skipIfDarwin
@skipIfNetBSD # Hangs on NetBSD as well
@no_debug_info_test
def test_commands(self):
'''
Tests the "initCommands", "preRunCommands", "stopCommands",

View File

@ -17,7 +17,6 @@ class TestVSCode_setBreakpoints(lldbvscode_testcase.VSCodeTestCaseBase):
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
@ -149,7 +148,6 @@ class TestVSCode_setBreakpoints(lldbvscode_testcase.VSCodeTestCaseBase):
"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.'''

View File

@ -18,7 +18,6 @@ class TestVSCode_setExceptionBreakpoints(
@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

View File

@ -17,7 +17,6 @@ class TestVSCode_setFunctionBreakpoints(
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
@ -108,7 +107,6 @@ class TestVSCode_setFunctionBreakpoints(
"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.'''

View File

@ -24,7 +24,6 @@ class TestVSCode_variables(lldbvscode_testcase.VSCodeTestCaseBase):
@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

View File

@ -18,7 +18,6 @@ class TestVSCode_launch(lldbvscode_testcase.VSCodeTestCaseBase):
@skipIfWindows
@skipIfDarwin # Flaky
@no_debug_info_test
def test_default(self):
'''
Tests the default launch of a simple program. No arguments,
@ -36,7 +35,6 @@ class TestVSCode_launch(lldbvscode_testcase.VSCodeTestCaseBase):
"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
@ -56,7 +54,6 @@ class TestVSCode_launch(lldbvscode_testcase.VSCodeTestCaseBase):
'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
@ -84,7 +81,6 @@ class TestVSCode_launch(lldbvscode_testcase.VSCodeTestCaseBase):
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
@ -113,7 +109,6 @@ class TestVSCode_launch(lldbvscode_testcase.VSCodeTestCaseBase):
self.continue_to_exit()
@skipIfWindows
@no_debug_info_test
def test_sourcePath(self):
'''
Tests the "sourcePath" will set the target.source-map.
@ -139,7 +134,6 @@ class TestVSCode_launch(lldbvscode_testcase.VSCodeTestCaseBase):
self.continue_to_exit()
@skipIfWindows
@no_debug_info_test
def test_disableSTDIO(self):
'''
Tests the default launch of a simple program with STDIO disabled.
@ -156,7 +150,6 @@ class TestVSCode_launch(lldbvscode_testcase.VSCodeTestCaseBase):
@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
@ -180,7 +173,6 @@ class TestVSCode_launch(lldbvscode_testcase.VSCodeTestCaseBase):
glob, program))
@skipIfWindows
@no_debug_info_test
def test_shellExpandArguments_disabled(self):
'''
Tests the default launch of a simple program with shell expansion
@ -206,7 +198,6 @@ class TestVSCode_launch(lldbvscode_testcase.VSCodeTestCaseBase):
glob, glob))
@skipIfWindows
@no_debug_info_test
def test_args(self):
'''
Tests launch of a simple program with arguments
@ -232,7 +223,6 @@ class TestVSCode_launch(lldbvscode_testcase.VSCodeTestCaseBase):
'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
@ -265,7 +255,6 @@ class TestVSCode_launch(lldbvscode_testcase.VSCodeTestCaseBase):
var, lines))
@skipIfWindows
@no_debug_info_test
def test_commands(self):
'''
Tests the "initCommands", "preRunCommands", "stopCommands" and
@ -332,7 +321,6 @@ class TestVSCode_launch(lldbvscode_testcase.VSCodeTestCaseBase):
self.verify_commands('exitCommands', output, exitCommands)
@skipIfWindows
@no_debug_info_test
def test_extra_launch_commands(self):
'''
Tests the "luanchCommands" with extra launching settings

View File

@ -6,6 +6,8 @@ import vscode
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),

View File

@ -52,7 +52,6 @@ class TestVSCode_stackTrace(lldbvscode_testcase.VSCodeTestCaseBase):
expected_line))
@skipIfWindows
@no_debug_info_test
def test_stackTrace(self):
'''
Tests the 'stackTrace' packet and all its variants.

View File

@ -16,7 +16,6 @@ class TestVSCode_step(lldbvscode_testcase.VSCodeTestCaseBase):
mydir = TestBase.compute_mydir(__file__)
@skipIfWindows
@no_debug_info_test
def test_step(self):
'''
Tests the stepping in/out/over in threads.

View File

@ -74,7 +74,6 @@ class TestVSCode_variables(lldbvscode_testcase.VSCodeTestCaseBase):
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"