diff options
author | Vasilis Kalintiris <ehostunreach@gmail.com> | 2013-12-06 20:18:45 +0200 |
---|---|---|
committer | Vasilis Kalintiris <ehostunreach@gmail.com> | 2013-12-07 19:35:49 +0200 |
commit | 18d85cf2cf5cc3eae4e0758f145d9d49f1d1d877 (patch) | |
tree | 4030e1be9a7b4d2e27fd78970221423cbbb9684c /tests/test_core.py | |
parent | 5a1d1b688b520864f635398e3b03583f6eef4b4e (diff) |
Use do_run_from_file() for test_i64_umul
Diffstat (limited to 'tests/test_core.py')
-rw-r--r-- | tests/test_core.py | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 52cbbec6..5647d231 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -296,27 +296,10 @@ class T(RunnerCore): # Short name, to make it more fun to use manually on the co def test_i64_umul(self): if Settings.USE_TYPED_ARRAYS != 2: return self.skip('full i64 stuff only in ta2') - src = r''' - #include <inttypes.h> - #include <stdio.h> - - typedef uint32_t UINT32; - typedef uint64_t UINT64; - - int main() { - volatile UINT32 testu32a = 2375724032U; - UINT32 bigu32 = 0xffffffffU; - volatile UINT64 testu64a = 14746250828952703000U; - - while ((UINT64)testu32a * (UINT64)bigu32 < testu64a) { - printf("testu64a is %llu\n", testu64a); - testu64a /= 2; - } + test_path = path_from_root('tests', 'core', 'test_i64_umul') + src, output = (test_path + s for s in ('.in', '.out')) - return 0; - } - ''' - self.do_run(src, 'testu64a is 14746250828952703000\n') + self.do_run_from_file(src, output) def test_i64_precise(self): if Settings.USE_TYPED_ARRAYS != 2: return self.skip('full i64 stuff only in ta2') |