diff options
| author | William Bruneau <william.bruneau@epfedu.fr> | 2019-04-11 15:27:20 +0200 |
|---|---|---|
| committer | William Bruneau <william.bruneau@epfedu.fr> | 2019-04-12 15:18:47 +0200 |
| commit | cff804399287b7d86b9b8a4cbc41ebbb4a94d24f (patch) | |
| tree | ccb03a2a773a6b47a3a40bea926d803c61f4acae /test/jitter/jitcore.py | |
| parent | a4eff59fba5faf89fef70ca0ee3cea77a2056b1b (diff) | |
| download | miasm-cff804399287b7d86b9b8a4cbc41ebbb4a94d24f.tar.gz miasm-cff804399287b7d86b9b8a4cbc41ebbb4a94d24f.zip | |
Fix python 2
Diffstat (limited to 'test/jitter/jitcore.py')
| -rw-r--r-- | test/jitter/jitcore.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/jitter/jitcore.py b/test/jitter/jitcore.py index af697e49..5618d172 100644 --- a/test/jitter/jitcore.py +++ b/test/jitter/jitcore.py @@ -24,7 +24,14 @@ try: except TypeError as te: pass else: - raise Exception("Should see that 0x1ffffffffffffffff is to big for RAX") + raise Exception("Should see that 0x1ffffffffffffffff is too big for RAX") + +try: + jitter.cpu.RAX = 0x10000000000000000 +except TypeError as te: + pass +else: + raise Exception("Should see that 0x10000000000000000 is too big for RAX") jitter.cpu.EAX = -0xefffffff assert jitter.cpu.EAX == 0x10000001 @@ -37,4 +44,4 @@ try: except TypeError as te: pass else: - raise Exception("Should see that -0x1ffffffff is to big for EAX") + raise Exception("Should see that -0x1ffffffff is too big for EAX") |