11
11
import os
12
12
import re
13
13
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.
14
17
15
18
class TestDAP_launch (lldbdap_testcase .DAPTestCaseBase ):
19
+ @skipIfWindows
16
20
def test_default (self ):
17
21
"""
18
22
Tests the default launch of a simple program. No arguments,
@@ -95,6 +99,7 @@ def test_stopOnEntry(self):
95
99
reason , "breakpoint" , 'verify stop isn\' t "main" breakpoint'
96
100
)
97
101
102
+ @skipIfWindows
98
103
def test_cwd (self ):
99
104
"""
100
105
Tests the default launch of a simple program with a current working
@@ -175,6 +180,7 @@ def test_sourcePath(self):
175
180
self .assertTrue (found , 'found "sourcePath" in console output' )
176
181
self .continue_to_exit ()
177
182
183
+ @skipIfWindows
178
184
def test_disableSTDIO (self ):
179
185
"""
180
186
Tests the default launch of a simple program with STDIO disabled.
@@ -210,6 +216,7 @@ def test_shellExpandArguments_enabled(self):
210
216
quote_path , line , 'verify "%s" expanded to "%s"' % (glob , program )
211
217
)
212
218
219
+ @skipIfWindows
213
220
def test_shellExpandArguments_disabled (self ):
214
221
"""
215
222
Tests the default launch of a simple program with shell expansion
@@ -231,6 +238,7 @@ def test_shellExpandArguments_disabled(self):
231
238
quote_path , line , 'verify "%s" stayed to "%s"' % (glob , glob )
232
239
)
233
240
241
+ @skipIfWindows
234
242
def test_args (self ):
235
243
"""
236
244
Tests launch of a simple program with arguments
@@ -255,6 +263,7 @@ def test_args(self):
255
263
'arg[%i] "%s" not in "%s"' % (i + 1 , quoted_arg , lines [i ]),
256
264
)
257
265
266
+ @skipIfWindows
258
267
def test_environment_with_object (self ):
259
268
"""
260
269
Tests launch of a simple program with environment variables
@@ -289,6 +298,7 @@ def test_environment_with_object(self):
289
298
found , '"%s" must exist in program environment (%s)' % (var , lines )
290
299
)
291
300
301
+ @skipIfWindows
292
302
def test_environment_with_array (self ):
293
303
"""
294
304
Tests launch of a simple program with environment variables
0 commit comments