[Lldb-commits] [lldb] r112328 - /lldb/trunk/test/persistent_variables/TestPersistentVariables.py

Johnny Chen johnny.chen at apple.com
Fri Aug 27 16:53:00 PDT 2010


Author: johnny
Date: Fri Aug 27 18:53:00 2010
New Revision: 112328

URL: http://llvm.org/viewvc/llvm-project?rev=112328&view=rev
Log:
Fail early, fail fast.

Modified:
    lldb/trunk/test/persistent_variables/TestPersistentVariables.py

Modified: lldb/trunk/test/persistent_variables/TestPersistentVariables.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/persistent_variables/TestPersistentVariables.py?rev=112328&r1=112327&r2=112328&view=diff
==============================================================================
--- lldb/trunk/test/persistent_variables/TestPersistentVariables.py (original)
+++ lldb/trunk/test/persistent_variables/TestPersistentVariables.py Fri Aug 27 18:53:00 2010
@@ -19,18 +19,21 @@
 
         self.runCmd("run", RUN_SUCCEEDED)
 
-        self.runCmd("expr int $i = 5; $i + 1")
-        # $0 = (int)6
-
-        self.runCmd("expr $i + 3")
-        # $1 = (int)8
-
-        self.runCmd("expr $1 + $0")
-        # $2 = (int)14
+        self.expect("expr int $i = 5; $i + 1",
+            startstr = "$0 = (int) 6")
+        # $0 = (int) 6
+
+        self.expect("expr $i + 3",
+            startstr = "$1 = (int) 8")
+        # $1 = (int) 8
+
+        self.expect("expr $1 + $0",
+            startstr = "$2 = (int) 14")
+        # $2 = (int) 14
 
         self.expect("expr $2",
             startstr = "$3 = (int) 14")
-        # $3 = (int)14
+        # $3 = (int) 14
 
 
 if __name__ == '__main__':





More information about the lldb-commits mailing list