[lldb][Test] TestRerunAndExpr.py: skip on Windows
authorMichael Buch <michaelbuch12@gmail.com>
Tue, 6 Dec 2022 02:13:59 +0000 (02:13 +0000)
committerMichael Buch <michaelbuch12@gmail.com>
Tue, 6 Dec 2022 02:16:31 +0000 (02:16 +0000)
On Windows rebuilding the binary isn't enough to unload it
on progrem restart. But the assumption of the test is that on
program re-run LLDB destroys and replaces the old module with
the newly built version. One will have to try hard to evict the
module from the ModuleList (possibly including a call to
`SBDebugger::MemoryPressureDetected`.

See D138724

lldb/test/API/functionalities/rerun_and_expr/TestRerunAndExpr.py

index ebf26e5..192e131 100644 (file)
@@ -7,8 +7,14 @@ tied to that process.
 import lldb
 from lldbsuite.test.lldbtest import *
 from lldbsuite.test import lldbutil
+from lldbsuite.test.decorators import *
 
 class TestRerunExpr(TestBase):
+    # FIXME: on Windows rebuilding the binary isn't enough to unload it
+    #        on progrem restart. One will have to try hard to evict
+    #        the module from the ModuleList (possibly including a call to
+    #        SBDebugger::MemoryPressureDetected.
+    @skipIfWindows
     def test(self):
         """
         Tests whether re-launching a process without destroying