diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-07 13:57:08 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-07 13:57:08 -0800 |
commit | 7ec7be9c909d2335c6915dc90dbf5683133822ec (patch) | |
tree | 30943d2f337f72a7418614eb8401ec99f4f74270 /tests/runner.py | |
parent | 462bfcbbb38e45b0d00609cd472460b260dc9f62 (diff) |
workaround for i64 mode 1 in printf test
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index fa6a3d69..f26ac370 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -2747,7 +2747,8 @@ if 'benchmark' not in str(sys.argv): def test_printf(self): src = open(path_from_root('tests', 'printf', 'test.c'), 'r').read() - expected = open(path_from_root('tests', 'printf', 'output.txt'), 'r').read() + # I64 mode 1 has some rounding and un-NaNing effects + expected = open(path_from_root('tests', 'printf', 'output.txt' if Settings.I64_MODE == 0 else 'output_i64_1.txt'), 'r').read() self.do_run(src, expected) def test_printf_types(self): |