mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 15:41:46 +00:00
Fail early, fail fast.
llvm-svn: 112328
This commit is contained in:
parent
5ee881948a
commit
269457515a
@ -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__':
|
||||
|
Loading…
Reference in New Issue
Block a user