mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 00:20:25 +08:00
[lldb][lldb-dap] Disable launch tests that rely on get_stdout()
This appears not to work on Windows. See https://github.com/llvm/llvm-project/issues/137599.
This commit is contained in:
@@ -11,8 +11,12 @@ import time
|
||||
import os
|
||||
import re
|
||||
|
||||
# Many tests are skipped on Windows because get_stdout() returns None there.
|
||||
# Despite the test program printing correctly. See
|
||||
# https://github.com/llvm/llvm-project/issues/137599.
|
||||
|
||||
class TestDAP_launch(lldbdap_testcase.DAPTestCaseBase):
|
||||
@skipIfWindows
|
||||
def test_default(self):
|
||||
"""
|
||||
Tests the default launch of a simple program. No arguments,
|
||||
@@ -95,6 +99,7 @@ class TestDAP_launch(lldbdap_testcase.DAPTestCaseBase):
|
||||
reason, "breakpoint", 'verify stop isn\'t "main" breakpoint'
|
||||
)
|
||||
|
||||
@skipIfWindows
|
||||
def test_cwd(self):
|
||||
"""
|
||||
Tests the default launch of a simple program with a current working
|
||||
@@ -175,6 +180,7 @@ class TestDAP_launch(lldbdap_testcase.DAPTestCaseBase):
|
||||
self.assertTrue(found, 'found "sourcePath" in console output')
|
||||
self.continue_to_exit()
|
||||
|
||||
@skipIfWindows
|
||||
def test_disableSTDIO(self):
|
||||
"""
|
||||
Tests the default launch of a simple program with STDIO disabled.
|
||||
@@ -210,6 +216,7 @@ class TestDAP_launch(lldbdap_testcase.DAPTestCaseBase):
|
||||
quote_path, line, 'verify "%s" expanded to "%s"' % (glob, program)
|
||||
)
|
||||
|
||||
@skipIfWindows
|
||||
def test_shellExpandArguments_disabled(self):
|
||||
"""
|
||||
Tests the default launch of a simple program with shell expansion
|
||||
@@ -231,6 +238,7 @@ class TestDAP_launch(lldbdap_testcase.DAPTestCaseBase):
|
||||
quote_path, line, 'verify "%s" stayed to "%s"' % (glob, glob)
|
||||
)
|
||||
|
||||
@skipIfWindows
|
||||
def test_args(self):
|
||||
"""
|
||||
Tests launch of a simple program with arguments
|
||||
@@ -255,6 +263,7 @@ class TestDAP_launch(lldbdap_testcase.DAPTestCaseBase):
|
||||
'arg[%i] "%s" not in "%s"' % (i + 1, quoted_arg, lines[i]),
|
||||
)
|
||||
|
||||
@skipIfWindows
|
||||
def test_environment_with_object(self):
|
||||
"""
|
||||
Tests launch of a simple program with environment variables
|
||||
@@ -289,6 +298,7 @@ class TestDAP_launch(lldbdap_testcase.DAPTestCaseBase):
|
||||
found, '"%s" must exist in program environment (%s)' % (var, lines)
|
||||
)
|
||||
|
||||
@skipIfWindows
|
||||
def test_environment_with_array(self):
|
||||
"""
|
||||
Tests launch of a simple program with environment variables
|
||||
|
||||
Reference in New Issue
Block a user