[Lldb-commits] [lldb] r184126 - Fix breakpoint test to account for full path of source file location.

Matt Kopec Matt.Kopec at intel.com
Mon Jun 17 14:27:50 PDT 2013


Author: mkopec
Date: Mon Jun 17 16:27:50 2013
New Revision: 184126

URL: http://llvm.org/viewvc/llvm-project?rev=184126&view=rev
Log:
Fix breakpoint test to account for full path of source file location.

Modified:
    lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py

Modified: lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py?rev=184126&r1=184125&r2=184126&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py Mon Jun 17 16:27:50 2013
@@ -62,13 +62,13 @@ class BreakpointCommandTestCase(TestBase
 
         # The breakpoint list now only contains breakpoint 1.
         self.expect("breakpoint list", "Breakpoints 1 & 2 created",
-            substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.line,
-                       "2: file = 'main.c', line = %d, locations = 1" % self.line] )
+            substrs = ["2: file = 'main.c', line = %d, locations = 1" % self.line],
+            patterns = ["1: file = '.*main.c', line = %d, locations = 1" % self.line] )
 
         self.expect("breakpoint list -f", "Breakpoints 1 & 2 created",
-            substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.line,
-                       "2: file = 'main.c', line = %d, locations = 1" % self.line],
-            patterns = ["1.1: .+at main.c:%d, .+unresolved, hit count = 0" % self.line,
+            substrs = ["2: file = 'main.c', line = %d, locations = 1" % self.line],
+            patterns = ["1: file = '.*main.c', line = %d, locations = 1" % self.line,
+                        "1.1: .+at main.c:%d, .+unresolved, hit count = 0" % self.line,
                         "2.1: .+at main.c:%d, .+unresolved, hit count = 0" % self.line])
 
         self.expect("breakpoint command list 1", "Breakpoint 1 command ok",
@@ -143,7 +143,7 @@ class BreakpointCommandTestCase(TestBase
 
         # The breakpoint list now only contains breakpoint 1.
         self.expect("breakpoint list -f", "Breakpoint 1 exists",
-            substrs = ["1: file = 'main.c', line = %d, locations = 1, resolved = 1" %
+            patterns = ["1: file = '.*main.c', line = %d, locations = 1, resolved = 1" %
                         self.line,
                        "hit count = 1"])
 





More information about the lldb-commits mailing list