[Lldb-commits] [lldb] [lldb][test] Disable TestEvents.py (PR #226486)
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 25 06:24:33 PDT 2026
https://github.com/Teemperor created https://github.com/llvm/llvm-project/pull/226486
This test is flaky on Linux, macOS and Windows. The usual failure on macOS is as follows:
```
FAIL: test_shadow_listener (TestEvents.EventAPITestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 801, in wrapper
func(*args, **kwargs)
llvm-project/lldb/test/API/python_api/event/TestEvents.py", line 485, in test_shadow_listener
state, restarted = self.wait_for_next_event(None, False)
llvm-project/lldb/test/API/python_api/event/TestEvents.py", line 346, in wait_for_next_event
self.assertEqual(
>>> AssertionError: 2 != 3 : matching stop hook
Config=arm64-/Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/lldb-build/bin/clang
----------------------------------------------------------------------
```
The test is already skipped on all platforms except macOS. This patch skips it on all platforms.
>From b346265728f1b1380c8af82de4be6332b7767196 Mon Sep 17 00:00:00 2001
From: Raphael Isemann <rise at apple.com>
Date: Fri, 25 Sep 2026 14:08:28 +0100
Subject: [PATCH] [lldb][test] Disable TestEvents.py
This test is flaky on Linux, macOS and Windows. The usual failure on
macOS is as follows:
```
FAIL: test_shadow_listener (TestEvents.EventAPITestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 801, in wrapper
func(*args, **kwargs)
llvm-project/lldb/test/API/python_api/event/TestEvents.py", line 485, in test_shadow_listener
state, restarted = self.wait_for_next_event(None, False)
llvm-project/lldb/test/API/python_api/event/TestEvents.py", line 346, in wait_for_next_event
self.assertEqual(
>>> AssertionError: 2 != 3 : matching stop hook
Config=arm64-/Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/lldb-build/bin/clang
----------------------------------------------------------------------
```
The test is already skipped on all platforms except macOS. This patch
skips it on all platforms.
---
lldb/test/API/python_api/event/TestEvents.py | 19 ++-----------------
1 file changed, 2 insertions(+), 17 deletions(-)
diff --git a/lldb/test/API/python_api/event/TestEvents.py b/lldb/test/API/python_api/event/TestEvents.py
index d8abf7223edf5e..31caf744fc333a 100644
--- a/lldb/test/API/python_api/event/TestEvents.py
+++ b/lldb/test/API/python_api/event/TestEvents.py
@@ -9,7 +9,8 @@
from lldbsuite.test import lldbutil
import random
- at skipIfLinux # llvm.org/pr25924, sometimes generating SIGSEGV
+# See also: https://github.com/llvm/llvm-project/issues/37721
+ at skip(bugnumber="https://github.com/llvm/llvm-project/issues/24104")
class EventAPITestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
SHARED_BUILD_TESTCASE = False
@@ -23,11 +24,6 @@ def setUp(self):
)
random.seed()
- @expectedFailureAll(
- oslist=["linux"], bugnumber="llvm.org/pr23730 Flaky, fails ~1/10 cases"
- )
- @skipIfWindows # This is flakey on Windows AND when it fails, it hangs: llvm.org/pr38373
- @skipIfNetBSD
def test_listen_for_and_print_event(self):
"""Exercise SBEvent API."""
self.build()
@@ -114,9 +110,6 @@ def run(self):
# Shouldn't we be testing against some kind of expectation here?
- @expectedFlakeyLinux("llvm.org/pr23730") # Flaky, fails ~1/100 cases
- @skipIfWindows # This is flakey on Windows AND when it fails, it hangs: llvm.org/pr38373
- @skipIfNetBSD
def test_wait_for_event(self):
"""Exercise SBListener.WaitForEvent() API."""
self.build()
@@ -194,11 +187,6 @@ def run(self):
self.assertTrue(event, "My listening thread successfully received an event")
- @expectedFailureAll(
- oslist=["linux"], bugnumber="llvm.org/pr23617 Flaky, fails ~1/10 cases"
- )
- @skipIfWindows # This is flakey on Windows AND when it fails, it hangs: llvm.org/pr38373
- @expectedFailureNetBSD
def test_add_listener_to_broadcaster(self):
"""Exercise some SBBroadcaster APIs."""
self.build()
@@ -372,9 +360,6 @@ def wait_for_next_event(self, expected_state, test_shadow=False):
)
return state, restart
- @expectedFlakeyLinux("llvm.org/pr23730") # Flaky, fails ~1/100 cases
- @skipIfWindows # This is flakey on Windows AND when it fails, it hangs: llvm.org/pr38373
- @skipIfNetBSD
def test_shadow_listener(self):
self.build()
exe = self.getBuildArtifact("a.out")
More information about the lldb-commits
mailing list