[Lldb-commits] [lldb] r342732 - Skip test if gcc version is less than 7.1 since it doesn't support -gcolumn-info option

Tatyana Krasnukha via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 21 06:20:26 PDT 2018


Author: tkrasnukha
Date: Fri Sep 21 06:20:26 2018
New Revision: 342732

URL: http://llvm.org/viewvc/llvm-project?rev=342732&view=rev
Log:
Skip test if gcc version is less than 7.1 since it doesn't support -gcolumn-info option

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_by_line_and_column/TestBreakpointByLineAndColumn.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_by_line_and_column/TestBreakpointByLineAndColumn.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_by_line_and_column/TestBreakpointByLineAndColumn.py?rev=342732&r1=342731&r2=342732&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_by_line_and_column/TestBreakpointByLineAndColumn.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_by_line_and_column/TestBreakpointByLineAndColumn.py Fri Sep 21 06:20:26 2018
@@ -18,6 +18,8 @@ class BreakpointByLineAndColumnTestCase(
 
     mydir = TestBase.compute_mydir(__file__)
 
+    ## Skip gcc version less 7.1 since it doesn't support -gcolumn-info
+    @skipIf(compiler="gcc", compiler_version=['<', '7.1'])
     def testBreakpointByLineAndColumn(self):
         self.build()
         main_c = lldb.SBFileSpec("main.c")
@@ -31,6 +33,8 @@ class BreakpointByLineAndColumnTestCase(
             in_then |= b_loc.GetColumn() == 50
         self.assertTrue(in_then)
 
+    ## Skip gcc version less 7.1 since it doesn't support -gcolumn-info
+    @skipIf(compiler="gcc", compiler_version=['<', '7.1'])
     def testBreakpointByLine(self):
         self.build()
         main_c = lldb.SBFileSpec("main.c")




More information about the lldb-commits mailing list