[Lldb-commits] [lldb] r162462 - in /lldb/trunk/test/functionalities/abbreviation: TestAbbreviations.py TestCommonShortSpellings.py

Johnny Chen johnny.chen at apple.com
Thu Aug 23 12:36:03 PDT 2012


Author: johnny
Date: Thu Aug 23 14:36:03 2012
New Revision: 162462

URL: http://llvm.org/viewvc/llvm-project?rev=162462&view=rev
Log:
Fix the test suite failures as a result of r162418 check-in.

Modified:
    lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py
    lldb/trunk/test/functionalities/abbreviation/TestCommonShortSpellings.py

Modified: lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py?rev=162462&r1=162461&r2=162462&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py (original)
+++ lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py Thu Aug 23 14:36:03 2012
@@ -87,8 +87,7 @@
                     patterns = [ "Current executable set to .*a.out.*" ])
 
         self.expect("_regexp-b product",
-                    substrs = [ "breakpoint set --name 'product'",
-                                "Breakpoint created: 1: name = 'product', locations = 1" ])
+                    substrs = [ "Breakpoint created: 1: name = 'product', locations = 1" ])
 
         self.expect("br s -n sum",
                     startstr = "Breakpoint created: 2: name = 'sum', locations = 1")

Modified: lldb/trunk/test/functionalities/abbreviation/TestCommonShortSpellings.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/abbreviation/TestCommonShortSpellings.py?rev=162462&r1=162461&r2=162462&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/abbreviation/TestCommonShortSpellings.py (original)
+++ lldb/trunk/test/functionalities/abbreviation/TestCommonShortSpellings.py Thu Aug 23 14:36:03 2012
@@ -32,6 +32,10 @@
         self.expect("br s -n sum",
             startstr = "Breakpoint created: 1: name = 'sum', locations = 1")
 
+        self.runCmd("settings set interpreter.expand-regex-aliases true")
+        self.addTearDownHook(
+            lambda: self.runCmd("settings set interpreter.expand-regex-aliases false"))
+        
         # disp -> display
         self.expect("disp a",
             startstr = "target stop-hook add -o")





More information about the lldb-commits mailing list