Fail early, fail fast.

llvm-svn: 112328
This commit is contained in:
Johnny Chen 2010-08-27 23:53:00 +00:00
parent 5ee881948a
commit 269457515a

View File

@ -19,13 +19,16 @@ class TestPersistentVariables(TestBase):
self.runCmd("run", RUN_SUCCEEDED)
self.runCmd("expr int $i = 5; $i + 1")
self.expect("expr int $i = 5; $i + 1",
startstr = "$0 = (int) 6")
# $0 = (int) 6
self.runCmd("expr $i + 3")
self.expect("expr $i + 3",
startstr = "$1 = (int) 8")
# $1 = (int) 8
self.runCmd("expr $1 + $0")
self.expect("expr $1 + $0",
startstr = "$2 = (int) 14")
# $2 = (int) 14
self.expect("expr $2",