[Lldb-commits] [lldb] r121046 - in /lldb/trunk/test/foundation: TestObjCMethods.py main.m

Johnny Chen johnny.chen at apple.com
Mon Dec 6 14:09:04 PST 2010


Author: johnny
Date: Mon Dec  6 16:09:04 2010
New Revision: 121046

URL: http://llvm.org/viewvc/llvm-project?rev=121046&view=rev
Log:
Modified main.m and TestObjCMethods.py to unbreak the test/foundation directory.

Modified:
    lldb/trunk/test/foundation/TestObjCMethods.py
    lldb/trunk/test/foundation/main.m

Modified: lldb/trunk/test/foundation/TestObjCMethods.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/foundation/TestObjCMethods.py?rev=121046&r1=121045&r2=121046&view=diff
==============================================================================
--- lldb/trunk/test/foundation/TestObjCMethods.py (original)
+++ lldb/trunk/test/foundation/TestObjCMethods.py Mon Dec  6 16:09:04 2010
@@ -68,6 +68,12 @@
 
         self.runCmd("process continue")
 
+        # Second stop is still +[NSString stringWithFormat:].
+        self.expect("thread backtrace", "Stop at +[NSString stringWithFormat:]",
+            substrs = ["Foundation`+[NSString stringWithFormat:]"])
+
+        self.runCmd("process continue")
+
         # Followed by a.out`-[MyString initWithNSString:].
         self.expect("thread backtrace", "Stop at a.out`-[MyString initWithNSString:]",
             substrs = ["a.out`-[MyString initWithNSString:]"])
@@ -80,6 +86,12 @@
 
         self.runCmd("process continue")
 
+        # Followed by the same -[MyString description].
+        self.expect("thread backtrace", "Stop at -[MyString description]",
+            substrs = ["a.out`-[MyString description]"])
+
+        self.runCmd("process continue")
+
         # Followed by -[NSAutoreleasePool release].
         self.expect("thread backtrace", "Stop at -[NSAutoreleasePool release]",
             substrs = ["Foundation`-[NSAutoreleasePool release]"])

Modified: lldb/trunk/test/foundation/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/foundation/main.m?rev=121046&r1=121045&r2=121046&view=diff
==============================================================================
--- lldb/trunk/test/foundation/main.m (original)
+++ lldb/trunk/test/foundation/main.m Mon Dec  6 16:09:04 2010
@@ -88,6 +88,7 @@
     NSString *str = [NSString stringWithFormat:@"Hello from '%s'", program];
     MyString *my = [[MyString alloc] initWithNSString:str];
     NSLog(@"MyString instance: %@", [my description]);
+    // Set break point at this line.  Test 'expression -o -- my'.
     my.descriptionPauses = YES;
     NSLog(@"MyString instance: %@", [my description]);
 }





More information about the lldb-commits mailing list