aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-07 11:24:09 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-07 11:24:09 -0800
commitac5c48218d97222a6e18aa3341f16507766596bd (patch)
tree8f583cf3778b7792eed9de0353f12f3c58ac7e1f /tests/runner.py
parente702f719f832582fb6b1864115bb7a8526148574 (diff)
parseInt test is problematic, mark it as such, and fix some i64 issues with rounding (but not all)
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/runner.py b/tests/runner.py
index df9c385e..e53dde28 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -2739,12 +2739,10 @@ if 'benchmark' not in str(sys.argv):
self.do_run(src, re.sub(r'\n\s+', '\n', expected))
def test_parseInt(self):
- Settings.I64_MODE = 1 # Necessary to prevent i64s being truncated into i32s
+ Settings.I64_MODE = 1 # Necessary to prevent i64s being truncated into i32s, but we do still get doubling
+ # FIXME: The output here is wrong, due to double rounding of i64s!
src = open(path_from_root('tests', 'parseInt', 'src.c'), '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.
+ expected = open(path_from_root('tests', 'parseInt', 'output.txt'), 'r').read()
self.do_run(src, expected)
def test_printf(self):