Skip to content

Commit 5afe9c7

Browse files
committed
[lldb][lldb-dap] Disable launch tests that rely on get_stdout()
This appears not to work on Windows. See #137599.
1 parent 8506980 commit 5afe9c7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lldb/test/API/tools/lldb-dap/launch/TestDAP_launch.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@
1111
import os
1212
import re
1313

14+
# Many tests are skipped on Windows because get_stdout() returns None there.
15+
# Despite the test program printing correctly. See
16+
# https://github.com/llvm/llvm-project/issues/137599.
1417

1518
class TestDAP_launch(lldbdap_testcase.DAPTestCaseBase):
19+
@skipIfWindows
1620
def test_default(self):
1721
"""
1822
Tests the default launch of a simple program. No arguments,
@@ -95,6 +99,7 @@ def test_stopOnEntry(self):
9599
reason, "breakpoint", 'verify stop isn\'t "main" breakpoint'
96100
)
97101

102+
@skipIfWindows
98103
def test_cwd(self):
99104
"""
100105
Tests the default launch of a simple program with a current working
@@ -175,6 +180,7 @@ def test_sourcePath(self):
175180
self.assertTrue(found, 'found "sourcePath" in console output')
176181
self.continue_to_exit()
177182

183+
@skipIfWindows
178184
def test_disableSTDIO(self):
179185
"""
180186
Tests the default launch of a simple program with STDIO disabled.
@@ -210,6 +216,7 @@ def test_shellExpandArguments_enabled(self):
210216
quote_path, line, 'verify "%s" expanded to "%s"' % (glob, program)
211217
)
212218

219+
@skipIfWindows
213220
def test_shellExpandArguments_disabled(self):
214221
"""
215222
Tests the default launch of a simple program with shell expansion
@@ -231,6 +238,7 @@ def test_shellExpandArguments_disabled(self):
231238
quote_path, line, 'verify "%s" stayed to "%s"' % (glob, glob)
232239
)
233240

241+
@skipIfWindows
234242
def test_args(self):
235243
"""
236244
Tests launch of a simple program with arguments
@@ -255,6 +263,7 @@ def test_args(self):
255263
'arg[%i] "%s" not in "%s"' % (i + 1, quoted_arg, lines[i]),
256264
)
257265

266+
@skipIfWindows
258267
def test_environment_with_object(self):
259268
"""
260269
Tests launch of a simple program with environment variables
@@ -289,6 +298,7 @@ def test_environment_with_object(self):
289298
found, '"%s" must exist in program environment (%s)' % (var, lines)
290299
)
291300

301+
@skipIfWindows
292302
def test_environment_with_array(self):
293303
"""
294304
Tests launch of a simple program with environment variables

0 commit comments

Comments
 (0)