diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-10 17:31:29 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-10 17:31:29 -0800 |
commit | 0f6bc429372bf571e1b52a11dfedcd84ceba99cc (patch) | |
tree | afb8d8db79fa4ded0d5d4e8944cf6078ad765d90 /tests/runner.py | |
parent | fa1544b5cacf6720c25222e7f94bb102670f1837 (diff) |
fix for test_parseInt
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index 2748d6a1..4587d0b7 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -2385,7 +2385,10 @@ if 'benchmark' not in str(sys.argv): def test_parseInt(self): if Settings.USE_TYPED_ARRAYS != 0: return self.skip('Typed arrays truncate i64') src = open(path_from_root('tests', 'parseInt', 'src.c'), 'r').read() - expected = open(path_from_root('tests', 'parseInt', 'output.txt'), 'r').read() + if Settings.I64_MODE == 0: + expected = open(path_from_root('tests', 'parseInt', 'output.txt'), 'r').read() + else: + expected = open(path_from_root('tests', 'parseInt', 'output_i64mode1.txt'), 'r').read() # some rounding issues, etc. self.do_run(src, expected) def test_printf(self): |