Setting TestInferiorChanged.py to expectedFailureLinux because of bugzilla 14662.
Note that the test actually fails before reaching the assertion described in that bug, but the failure is a trivial matter of adding OS-conditional expected stop reason strings (as noted by new comments in this patch). However, with the stop reason strings changed, the test fails for the more substantial reason noted in bugzilla 14662.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@170619 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/functionalities/inferior-changed/TestInferiorChanged.py b/test/functionalities/inferior-changed/TestInferiorChanged.py
index 41e44aa..1bdbb47 100644
--- a/test/functionalities/inferior-changed/TestInferiorChanged.py
+++ b/test/functionalities/inferior-changed/TestInferiorChanged.py
@@ -21,6 +21,7 @@
self.setTearDownCleanup(dictionary=d)
self.inferior_not_crashing()
+ @expectedFailureLinux # bugzilla 14662 - POSIX dynamic loader asserts on re-launch
def test_inferior_crashing_dwarf(self):
"""Test lldb reloads the inferior after it was changed during the session."""
self.buildDwarf()
@@ -45,11 +46,13 @@
self.runCmd("run", RUN_SUCCEEDED)
+ # FIXME: This expected stop reason is Darwin-specific
# The stop reason of the thread should be a bad access exception.
self.expect("thread list", STOPPED_DUE_TO_EXC_BAD_ACCESS,
substrs = ['stopped',
'stop reason = EXC_BAD_ACCESS'])
+ # FIXME: This expected stop reason is Darwin-specific
# And it should report the correct line number.
self.expect("thread backtrace all",
substrs = ['stop reason = EXC_BAD_ACCESS',
@@ -61,6 +64,7 @@
self.runCmd("run", RUN_SUCCEEDED)
self.runCmd("process status")
+ # FIXME: This unexpected stop reason is Darwin-specific
if 'EXC_BAD_ACCESS' in self.res.GetOutput():
self.fail("Inferior changed, but lldb did not perform a reload")