summaryrefslogtreecommitdiffstats
path: root/lldb/test/expression_command/call-function/TestCallStdStringFunction.py
diff options
context:
space:
mode:
authorMatt Kopec <Matt.Kopec@intel.com>2013-03-01 17:29:16 +0000
committerMatt Kopec <Matt.Kopec@intel.com>2013-03-01 17:29:16 +0000
commitc51b243a4346ba4c6665221d030e67ffa836f6d2 (patch)
tree531be11101f46dfd057abbc3a72fba04bb82558f /lldb/test/expression_command/call-function/TestCallStdStringFunction.py
parent8eb371b3ccfaf219adad95671392b03bf5d30c73 (diff)
downloadbcm5719-llvm-c51b243a4346ba4c6665221d030e67ffa836f6d2.tar.gz
bcm5719-llvm-c51b243a4346ba4c6665221d030e67ffa836f6d2.zip
Update TestCallStdStringFunction to expected fail for gcc and account for multiple breakpoint locations.
Patch from Ashok Thirumurthi. llvm-svn: 176357
Diffstat (limited to 'lldb/test/expression_command/call-function/TestCallStdStringFunction.py')
-rw-r--r--lldb/test/expression_command/call-function/TestCallStdStringFunction.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/test/expression_command/call-function/TestCallStdStringFunction.py b/lldb/test/expression_command/call-function/TestCallStdStringFunction.py
index 3c8f66a68fd..ed24c44b756 100644
--- a/lldb/test/expression_command/call-function/TestCallStdStringFunction.py
+++ b/lldb/test/expression_command/call-function/TestCallStdStringFunction.py
@@ -25,8 +25,8 @@ class ExprCommandCallFunctionTestCase(TestBase):
self.buildDsym()
self.call_function()
- @skipOnLinux #PR-15256: assertion failure in RecordLayoutBuilder::updateExternalFieldOffset
@dwarf_test
+ @expectedFailureGcc # bugzilla 14437, fails with GCC 4.6.3 and 4.7.2
def test_with_dwarf(self):
"""Test calling std::String member function."""
self.buildDwarf()
@@ -36,7 +36,8 @@ class ExprCommandCallFunctionTestCase(TestBase):
"""Test calling std::String member function."""
self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
- lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, loc_exact=True)
+ # Some versions of GCC encode two locations for the 'return' statement in main.cpp
+ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1, loc_exact=True)
self.runCmd("run", RUN_SUCCEEDED)
OpenPOWER on IntegriCloud