From 269457515a737f4b9f60d1c92240d7cc7be5c033 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 27 Aug 2010 23:53:00 +0000 Subject: [PATCH] Fail early, fail fast. llvm-svn: 112328 --- .../TestPersistentVariables.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/lldb/test/persistent_variables/TestPersistentVariables.py b/lldb/test/persistent_variables/TestPersistentVariables.py index 3e66965f6dfd..b30003ef05e9 100644 --- a/lldb/test/persistent_variables/TestPersistentVariables.py +++ b/lldb/test/persistent_variables/TestPersistentVariables.py @@ -19,18 +19,21 @@ class TestPersistentVariables(TestBase): self.runCmd("run", RUN_SUCCEEDED) - self.runCmd("expr int $i = 5; $i + 1") - # $0 = (int)6 + self.expect("expr int $i = 5; $i + 1", + startstr = "$0 = (int) 6") + # $0 = (int) 6 - self.runCmd("expr $i + 3") - # $1 = (int)8 + self.expect("expr $i + 3", + startstr = "$1 = (int) 8") + # $1 = (int) 8 - self.runCmd("expr $1 + $0") - # $2 = (int)14 + 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__':