diff options
author | Vasilis Kalintiris <ehostunreach@gmail.com> | 2013-12-06 20:29:04 +0200 |
---|---|---|
committer | Vasilis Kalintiris <ehostunreach@gmail.com> | 2013-12-07 19:35:49 +0200 |
commit | f8c123951da867d39ab36d11b372307e51001281 (patch) | |
tree | b674adb1031d862350347db496446ceab58678b9 /tests/test_core.py | |
parent | 18d85cf2cf5cc3eae4e0758f145d9d49f1d1d877 (diff) |
Use do_run_from_file() for test_i64_llabs
Diffstat (limited to 'tests/test_core.py')
-rw-r--r-- | tests/test_core.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 5647d231..af47672d 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -378,15 +378,11 @@ class T(RunnerCore): # Short name, to make it more fun to use manually on the co def test_i64_llabs(self): if Settings.USE_TYPED_ARRAYS != 2: return self.skip('full i64 stuff only in ta2') Settings.PRECISE_I64_MATH = 2 - self.do_run(r''' - #include <stdio.h> - #include <stdlib.h> - int main(int argc, char ** argv) { - printf("%lld,%lld\n", llabs(-576460752303423489), llabs(576460752303423489)); - return 0; - } - ''', '576460752303423489,576460752303423489') + test_path = path_from_root('tests', 'core', 'test_i64_llabs') + src, output = (test_path + s for s in ('.in', '.out')) + + self.do_run_from_file(src, output) def test_i64_zextneg(self): if Settings.USE_TYPED_ARRAYS != 2: return self.skip('full i64 stuff only in ta2') |