[lldb] Skip several lldb tests that are flaky on Windows
authorStella Stamenova <stilis@microsoft.com>
Wed, 13 Oct 2021 16:46:41 +0000 (09:46 -0700)
committerStella Stamenova <stilis@microsoft.com>
Wed, 13 Oct 2021 16:46:41 +0000 (09:46 -0700)
These tests fail every 10 or so runs on Windows causing both local failures as well as buildbot failures.

Differential Revision: https://reviews.llvm.org/D111659

lldb/test/API/commands/process/attach/TestProcessAttach.py
lldb/test/API/commands/target/auto-install-main-executable/TestAutoInstallMainExecutable.py
lldb/test/API/tools/lldb-server/TestGdbRemoteAttachOrWait.py
lldb/test/API/tools/lldb-server/TestGdbRemoteAttachWait.py

index 265e9e1a5687d4ac5e409d88d456b5e370576bc6..b2d6878b13c0f0756bf2b4a3bd063608ca81e617 100644 (file)
@@ -101,6 +101,7 @@ class ProcessAttachTestCase(TestBase):
         process = target.GetProcess()
         self.assertTrue(process, PROCESS_IS_VALID)
 
+    @skipIfWindows # This test is flaky on Windows
     @expectedFailureNetBSD
     def test_attach_to_process_by_id_correct_executable_offset(self):
         """
index 9993768df06f327276a1c54e58915278d4acc219..2bc9a05c5e1b92870643ac19f32294ef8864c20f 100644 (file)
@@ -16,6 +16,7 @@ class TestAutoInstallMainExecutable(TestBase):
     NO_DEBUG_INFO_TESTCASE = True
 
     @skipIfRemote
+    @skipIfWindows # This test is flaky on Windows
     def test_target_auto_install_main_executable(self):
         if lldbgdbserverutils.get_lldb_server_exe() is None:
           self.skipTest("lldb-server not found")
index dd71e5077d47c644eeb632fe6b920eab614d9a39..ded3ff6f849b6ab6a7dc2a584ddafcd92a68bec7 100644 (file)
@@ -13,6 +13,7 @@ class TestGdbRemoteAttachOrWait(gdbremote_testcase.GdbRemoteTestCaseBase):
 
     mydir = TestBase.compute_mydir(__file__)
 
+    @skipIfWindows # This test is flaky on Windows
     def test_launch_before_attach_with_vAttachOrWait(self):
         exe = '%s_%d' % (self.testMethodName, os.getpid())
         self.build(dictionary={'EXE': exe})
@@ -57,6 +58,7 @@ class TestGdbRemoteAttachOrWait(gdbremote_testcase.GdbRemoteTestCaseBase):
         reported_pid = int(pid_text, base=16)
         self.assertEqual(reported_pid, inferior.pid)
 
+    @skipIfWindows # This test is flaky on Windows
     def test_launch_after_attach_with_vAttachOrWait(self):
         exe = '%s_%d' % (self.testMethodName, os.getpid())
         self.build(dictionary={'EXE': exe})
index deb82ed5183b1f57a1d2fc01cacbc13c583f8ee7..980bcb9c9d7c0bd3ee1f37e59781e0d8c08cf535 100644 (file)
@@ -13,6 +13,7 @@ class TestGdbRemoteAttachWait(gdbremote_testcase.GdbRemoteTestCaseBase):
 
     mydir = TestBase.compute_mydir(__file__)
 
+    @skipIfWindows # This test is flaky on Windows
     def test_attach_with_vAttachWait(self):
         exe = '%s_%d' % (self.testMethodName, os.getpid())