[Lldb-commits] [lldb] r121706 - /lldb/trunk/test/source-manager/TestSourceManager.py

Johnny Chen johnny.chen at apple.com
Mon Dec 13 10:59:27 PST 2010


Author: johnny
Date: Mon Dec 13 12:59:27 2010
New Revision: 121706

URL: http://llvm.org/viewvc/llvm-project?rev=121706&view=rev
Log:
Make the test case SourceManagerTestCase.display_source_python stronger by also
matching the source line number displayed.

Modified:
    lldb/trunk/test/source-manager/TestSourceManager.py

Modified: lldb/trunk/test/source-manager/TestSourceManager.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/source-manager/TestSourceManager.py?rev=121706&r1=121705&r2=121706&view=diff
==============================================================================
--- lldb/trunk/test/source-manager/TestSourceManager.py (original)
+++ lldb/trunk/test/source-manager/TestSourceManager.py Mon Dec 13 12:59:27 2010
@@ -68,7 +68,7 @@
         # 6   	}
         self.expect(stream.GetData(), "Source code displayed correctly",
                     exe=False,
-            patterns = ['=>.*Hello world'])        
+            patterns = ['%d =>.*Hello world' % self.line])        
 
     def modify_source_file_while_debugging(self):
         """Modify a source file while debugging the executable."""





More information about the lldb-commits mailing list