summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-09-24 00:27:13 +0000
committerAdrian Prantl <aprantl@apple.com>2019-09-24 00:27:13 +0000
commitc41dba992957b89c77ff2ccb7909ff1254fa3f65 (patch)
tree662e35ce24d02b0c1ac8aba77ae4634341cbeab8 /lldb/packages/Python/lldbsuite
parent895219971592f7011083de395308a0702f911cb9 (diff)
downloadbcm5719-llvm-c41dba992957b89c77ff2ccb7909ff1254fa3f65.tar.gz
bcm5719-llvm-c41dba992957b89c77ff2ccb7909ff1254fa3f65.zip
Adapt test to upstream clang compiler changes.
Clang now emits the correct C++ language version in DWARF. llvm-svn: 372677
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r--lldb/packages/Python/lldbsuite/test/commands/frame/language/TestGuessLanguage.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/commands/frame/language/TestGuessLanguage.py b/lldb/packages/Python/lldbsuite/test/commands/frame/language/TestGuessLanguage.py
index 19fa3e9f0d8..ed3e9efb0a5 100644
--- a/lldb/packages/Python/lldbsuite/test/commands/frame/language/TestGuessLanguage.py
+++ b/lldb/packages/Python/lldbsuite/test/commands/frame/language/TestGuessLanguage.py
@@ -20,6 +20,7 @@ class TestFrameGuessLanguage(TestBase):
# each debug info format.
NO_DEBUG_INFO_TESTCASE = True
+ @skipIf(compiler="clang", compiler_version=['<', '10.0'])
@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr37658")
def test_guess_language(self):
"""Test GuessLanguage for C and C++."""
@@ -74,12 +75,14 @@ class TestFrameGuessLanguage(TestBase):
thread = threads[0]
c_frame_language = lldb.eLanguageTypeC99
+ cxx_frame_language = lldb.eLanguageTypeC_plus_plus_11
# gcc emits DW_LANG_C89 even if -std=c99 was specified
if "gcc" in self.getCompiler():
c_frame_language = lldb.eLanguageTypeC89
+ cxx_frame_language = lldb.eLanguageTypeC_plus_plus
self.check_language(thread, 0, c_frame_language)
- self.check_language(thread, 1, lldb.eLanguageTypeC_plus_plus)
+ self.check_language(thread, 1, cxx_frame_language)
self.check_language(thread, 2, lldb.eLanguageTypeC_plus_plus)
OpenPOWER on IntegriCloud