Author: Tatyana Krasnukha
Date: 2019-11-12T13:58:06+03:00
New Revision: 3130a88137ddc6ee277c4e896f235cf93d883dfa

URL: 
https://github.com/llvm/llvm-project/commit/3130a88137ddc6ee277c4e896f235cf93d883dfa
DIFF: 
https://github.com/llvm/llvm-project/commit/3130a88137ddc6ee277c4e896f235cf93d883dfa.diff

LOG: [lldb][test] Macros in expressions require DWARF 5

Added: 
    

Modified: 
    lldb/packages/Python/lldbsuite/test/commands/expression/macros/Makefile
    lldb/packages/Python/lldbsuite/test/commands/expression/macros/TestMacros.py

Removed: 
    


################################################################################
diff  --git 
a/lldb/packages/Python/lldbsuite/test/commands/expression/macros/Makefile 
b/lldb/packages/Python/lldbsuite/test/commands/expression/macros/Makefile
index 59070728a5fa..a7549f24ea7a 100644
--- a/lldb/packages/Python/lldbsuite/test/commands/expression/macros/Makefile
+++ b/lldb/packages/Python/lldbsuite/test/commands/expression/macros/Makefile
@@ -1,6 +1,6 @@
 CXX_SOURCES := main.cpp
 
-DEBUG_INFO_FLAG = -g3
+DEBUG_INFO_FLAG = -g3 -gdwarf-5
 
 
 include Makefile.rules

diff  --git 
a/lldb/packages/Python/lldbsuite/test/commands/expression/macros/TestMacros.py 
b/lldb/packages/Python/lldbsuite/test/commands/expression/macros/TestMacros.py
index 817f6cb3944a..26e4309605ee 100644
--- 
a/lldb/packages/Python/lldbsuite/test/commands/expression/macros/TestMacros.py
+++ 
b/lldb/packages/Python/lldbsuite/test/commands/expression/macros/TestMacros.py
@@ -21,6 +21,9 @@ class TestMacros(TestBase):
         hostoslist=["windows"],
         compiler="gcc",
         triple='.*-android')
+    @expectedFailureAll(
+        compiler="gcc", compiler_version=['<', '5.1'],
+        bugnumber=".debug_macro was introduced in DWARF 5, GCC supports it 
since version 5.1")
     def test_expr_with_macros(self):
         self.build()
 


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to