[Lldb-commits] [lldb] r116331 - in /lldb/trunk/test/foundation: TestFoundationDisassembly.py TestObjCMethods.py
Johnny Chen
johnny.chen at apple.com
Tue Oct 12 12:29:50 PDT 2010
Author: johnny
Date: Tue Oct 12 14:29:49 2010
New Revision: 116331
URL: http://llvm.org/viewvc/llvm-project?rev=116331&view=rev
Log:
The 'regexp-break' command now prints out the command that results from
expanding the regular expression command. So change the more stringent:
self.expect(..., startstr = matching_string)
to:
self.expect(..., substrs = [matched_string])
to pass the test.
Modified:
lldb/trunk/test/foundation/TestFoundationDisassembly.py
lldb/trunk/test/foundation/TestObjCMethods.py
Modified: lldb/trunk/test/foundation/TestFoundationDisassembly.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/foundation/TestFoundationDisassembly.py?rev=116331&r1=116330&r2=116331&view=diff
==============================================================================
--- lldb/trunk/test/foundation/TestFoundationDisassembly.py (original)
+++ lldb/trunk/test/foundation/TestFoundationDisassembly.py Tue Oct 12 14:29:49 2010
@@ -71,7 +71,7 @@
# Stop at +[NSString stringWithFormat:].
self.expect("regexp-break +[NSString stringWithFormat:]", BREAKPOINT_CREATED,
- startstr = "Breakpoint created: 1: name = '+[NSString stringWithFormat:]', locations = 1")
+ substrs = ["Breakpoint created: 1: name = '+[NSString stringWithFormat:]', locations = 1"])
# Stop at -[MyString initWithNSString:].
self.expect("breakpoint set -n '-[MyString initWithNSString:]'", BREAKPOINT_CREATED,
@@ -83,7 +83,7 @@
# Stop at -[NSAutoreleasePool release].
self.expect("regexp-break -[NSAutoreleasePool release]", BREAKPOINT_CREATED,
- startstr = "Breakpoint created: 4: name = '-[NSAutoreleasePool release]', locations = 1")
+ substrs = ["Breakpoint created: 4: name = '-[NSAutoreleasePool release]', locations = 1"])
self.runCmd("run", RUN_SUCCEEDED)
Modified: lldb/trunk/test/foundation/TestObjCMethods.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/foundation/TestObjCMethods.py?rev=116331&r1=116330&r2=116331&view=diff
==============================================================================
--- lldb/trunk/test/foundation/TestObjCMethods.py (original)
+++ lldb/trunk/test/foundation/TestObjCMethods.py Tue Oct 12 14:29:49 2010
@@ -44,7 +44,7 @@
# Stop at +[NSString stringWithFormat:].
self.expect("regexp-break +[NSString stringWithFormat:]", BREAKPOINT_CREATED,
- startstr = "Breakpoint created: 1: name = '+[NSString stringWithFormat:]', locations = 1")
+ substrs = ["Breakpoint created: 1: name = '+[NSString stringWithFormat:]', locations = 1"])
# Stop at -[MyString initWithNSString:].
self.expect("breakpoint set -n '-[MyString initWithNSString:]'", BREAKPOINT_CREATED,
@@ -56,7 +56,7 @@
# Stop at -[NSAutoreleasePool release].
self.expect("regexp-break -[NSAutoreleasePool release]", BREAKPOINT_CREATED,
- startstr = "Breakpoint created: 4: name = '-[NSAutoreleasePool release]', locations = 1")
+ substrs = ["Breakpoint created: 4: name = '-[NSAutoreleasePool release]', locations = 1"])
self.runCmd("run", RUN_SUCCEEDED)
More information about the lldb-commits
mailing list