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
1 changed files with 10 additions and 7 deletions

View File

@ -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__':