Skip to content

Commit

Permalink
[lldb/Test] Add skipIfReproducer for tests that are not expected to work
Browse files Browse the repository at this point in the history
Some tests are not expected to work with reproducers, for example tests
that completely circumvent the reproducers (i.e. using the side_effects
Python module) or that rely on changes to the file system.
  • Loading branch information
JDevlieghere committed Apr 21, 2020
1 parent 67c6b80 commit 400b6f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Expand Up @@ -17,12 +17,14 @@ class BreakpointCommandTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)

@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24528")
@skipIfReproducer # side_effect bypasses reproducer
def not_test_breakpoint_command_sequence(self):
"""Test a sequence of breakpoint command add, list, and delete."""
self.build()
self.breakpoint_command_sequence()

@skipIf(oslist=["windows"], bugnumber="llvm.org/pr44431")
@skipIfReproducer # side_effect bypasses reproducer
def test_script_parameters(self):
"""Test a sequence of breakpoint command add, list, and delete."""
self.build()
Expand Down
Expand Up @@ -16,6 +16,7 @@ class ChangedInferiorTestCase(TestBase):

@skipIf(hostoslist=["windows"])
@no_debug_info_test
@skipIfReproducer # VFS is a snapshot.
def test_inferior_crashing(self):
"""Test lldb reloads the inferior after it was changed during the session."""
self.build()
Expand Down
Expand Up @@ -14,6 +14,7 @@ class TestClangModuleUpdate(TestBase):

@skipUnlessDarwin
@skipIf(debug_info=no_match(["gmodules"]))
@skipIfReproducer # VFS is a snapshot.
def test_expr(self):
with open(self.getBuildArtifact("module.modulemap"), "w") as f:
f.write("""
Expand Down

0 comments on commit 400b6f2

Please sign in to comment.