Skip to content

Commit 43af265

Browse files
Merge pull request #6980 from adrian-prantl/asan-skip
Skip tests under asan
2 parents 3d88f9d + baf29ac commit 43af265

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed

lldb/test/API/functionalities/avoids-fd-leak/TestFdLeak.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class AvoidsFdLeakTestCase(TestBase):
1717
@skipIfWindows
1818
@skipIfTargetAndroid() # Android have some other file descriptors open by the shell
1919
@skipIfDarwinEmbedded # <rdar://problem/33888742> # debugserver on ios has an extra fd open on launch
20+
@skipIfAsan
2021
def test_fd_leak_basic(self):
2122
self.do_test([])
2223

@@ -25,6 +26,7 @@ def test_fd_leak_basic(self):
2526
@skipIfWindows
2627
@skipIfTargetAndroid() # Android have some other file descriptors open by the shell
2728
@skipIfDarwinEmbedded # <rdar://problem/33888742> # debugserver on ios has an extra fd open on launch
29+
@skipIfAsan
2830
def test_fd_leak_log(self):
2931
self.do_test(["log enable -f '/dev/null' lldb commands"])
3032

@@ -54,6 +56,7 @@ def do_test(self, commands):
5456
@skipIfWindows
5557
@skipIfTargetAndroid() # Android have some other file descriptors open by the shell
5658
@skipIfDarwinEmbedded # <rdar://problem/33888742> # debugserver on ios has an extra fd open on launch
59+
@skipIfAsan
5760
def test_fd_leak_multitarget(self):
5861
self.build()
5962
exe = self.getBuildArtifact("a.out")

lldb/test/API/lang/objc/objc-checker/TestObjCCheckers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def setUp(self):
1919
# Find the line number to break for main.c.
2020
self.source_name = "main.m"
2121

22+
@skipIfAsan
2223
@add_test_categories(["pyapi"])
2324
def test_objc_checker(self):
2425
"""Test that checkers catch unrecognized selectors"""

lldb/test/API/lldbutil-tests/failed-to-hit-breakpoint/TestLLDBUtilFailedToHitBreakpoint.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
class LLDBUtilFailedToHitBreakpointTest(TestBase):
1212
NO_DEBUG_INFO_TESTCASE = True
1313

14+
@skipIfAsan
1415
@expectedFailureAll(oslist=["windows"])
1516
def test_error_message(self):
1617
"""

lldb/test/API/python_api/event/TestEvents.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def setUp(self):
2626
)
2727
@skipIfWindows # This is flakey on Windows AND when it fails, it hangs: llvm.org/pr38373
2828
@skipIfNetBSD
29+
@skipIfAsan
2930
def test_listen_for_and_print_event(self):
3031
"""Exercise SBEvent API."""
3132
self.build()
@@ -115,6 +116,7 @@ def run(self):
115116
@expectedFlakeyLinux("llvm.org/pr23730") # Flaky, fails ~1/100 cases
116117
@skipIfWindows # This is flakey on Windows AND when it fails, it hangs: llvm.org/pr38373
117118
@skipIfNetBSD
119+
@skipIfAsan
118120
def test_wait_for_event(self):
119121
"""Exercise SBListener.WaitForEvent() API."""
120122
self.build()
@@ -197,6 +199,7 @@ def run(self):
197199
)
198200
@skipIfWindows # This is flakey on Windows AND when it fails, it hangs: llvm.org/pr38373
199201
@expectedFailureNetBSD
202+
@skipIfAsan
200203
def test_add_listener_to_broadcaster(self):
201204
"""Exercise some SBBroadcaster APIs."""
202205
self.build()

lldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class TestVSCode_launch(lldbvscode_testcase.VSCodeTestCaseBase):
1616
@skipIfWindows
1717
@skipIfDarwin # Flaky
1818
@skipIfRemote
19+
@skipIfAsan
1920
def test_default(self):
2021
"""
2122
Tests the default launch of a simple program. No arguments,
@@ -32,6 +33,7 @@ def test_default(self):
3233

3334
@skipIfWindows
3435
@skipIfRemote
36+
@skipIfAsan
3537
def test_termination(self):
3638
"""
3739
Tests the correct termination of lldb-vscode upon a 'disconnect'
@@ -57,6 +59,7 @@ def test_termination(self):
5759

5860
@skipIfWindows
5961
@skipIfRemote
62+
@skipIfAsan
6063
def test_stopOnEntry(self):
6164
"""
6265
Tests the default launch of a simple program that stops at the
@@ -77,6 +80,7 @@ def test_stopOnEntry(self):
7780

7881
@skipIfWindows
7982
@skipIfRemote
83+
@skipIfAsan
8084
def test_cwd(self):
8185
"""
8286
Tests the default launch of a simple program with a current working
@@ -104,6 +108,7 @@ def test_cwd(self):
104108

105109
@skipIfWindows
106110
@skipIfRemote
111+
@skipIfAsan
107112
def test_debuggerRoot(self):
108113
"""
109114
Tests the "debuggerRoot" will change the working directory of
@@ -134,6 +139,7 @@ def test_debuggerRoot(self):
134139

135140
@skipIfWindows
136141
@skipIfRemote
142+
@skipIfAsan
137143
def test_sourcePath(self):
138144
"""
139145
Tests the "sourcePath" will set the target.source-map.
@@ -160,6 +166,7 @@ def test_sourcePath(self):
160166

161167
@skipIfWindows
162168
@skipIfRemote
169+
@skipIfAsan
163170
def test_disableSTDIO(self):
164171
"""
165172
Tests the default launch of a simple program with STDIO disabled.
@@ -175,6 +182,7 @@ def test_disableSTDIO(self):
175182
@skipIfLinux # shell argument expansion doesn't seem to work on Linux
176183
@expectedFailureAll(oslist=["freebsd", "netbsd"], bugnumber="llvm.org/pr48349")
177184
@skipIfRemote
185+
@skipIfAsan
178186
def test_shellExpandArguments_enabled(self):
179187
"""
180188
Tests the default launch of a simple program with shell expansion
@@ -198,6 +206,7 @@ def test_shellExpandArguments_enabled(self):
198206

199207
@skipIfWindows
200208
@skipIfRemote
209+
@skipIfAsan
201210
def test_shellExpandArguments_disabled(self):
202211
"""
203212
Tests the default launch of a simple program with shell expansion
@@ -221,6 +230,7 @@ def test_shellExpandArguments_disabled(self):
221230

222231
@skipIfWindows
223232
@skipIfRemote
233+
@skipIfAsan
224234
def test_args(self):
225235
"""
226236
Tests launch of a simple program with arguments
@@ -247,6 +257,7 @@ def test_args(self):
247257

248258
@skipIfWindows
249259
@skipIfRemote
260+
@skipIfAsan
250261
def test_environment(self):
251262
"""
252263
Tests launch of a simple program with environment variables
@@ -277,6 +288,7 @@ def test_environment(self):
277288

278289
@skipIfWindows
279290
@skipIfRemote
291+
@skipIfAsan
280292
@skipIf(
281293
archs=["arm", "aarch64"]
282294
) # failed run https://lab.llvm.org/buildbot/#/builders/96/builds/6933
@@ -361,6 +373,7 @@ def test_commands(self):
361373

362374
@skipIfWindows
363375
@skipIfRemote
376+
@skipIfAsan
364377
def test_extra_launch_commands(self):
365378
"""
366379
Tests the "launchCommands" with extra launching settings
@@ -428,6 +441,7 @@ def test_extra_launch_commands(self):
428441
@skipIfWindows
429442
@skipIfNetBSD # Hangs on NetBSD as well
430443
@skipIfDarwin
444+
@skipIfAsan
431445
@skipIf(
432446
archs=["arm", "aarch64"]
433447
) # Example of a flaky run http://lab.llvm.org:8011/builders/lldb-aarch64-ubuntu/builds/5540/steps/test/logs/stdio

0 commit comments

Comments
 (0)