summaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
authorVasilis Kalintiris <ehostunreach@gmail.com>2013-12-06 20:39:31 +0200
committerVasilis Kalintiris <ehostunreach@gmail.com>2013-12-07 19:35:50 +0200
commit7e0db00dff7387fef28aaecd771c0d8668975fe7 (patch)
tree12507918617b281d10bdcbbc3471b8d534602667 /tests/test_core.py
parent8896b0e5c916fd9aa7d61f715ca245a1b06396d2 (diff)
Use do_run_from_file() for test_i64_i16
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py17
1 files changed, 4 insertions, 13 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index f59d73a9..ae3aa26b 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -403,19 +403,10 @@ class T(RunnerCore): # Short name, to make it more fun to use manually on the co
def test_i64_i16(self):
if Settings.USE_TYPED_ARRAYS != 2: return self.skip('full i64 stuff only in ta2')
- src = r'''
- #include <stdint.h>
- #include <stdio.h>
- int main(int argc, char ** argv){
- int y=-133;
- int64_t x= ((int64_t)((short)(y)))*(100 + argc);
- if(x>0)
- printf(">0\n");
- else
- printf("<=0\n");
- }
- '''
- self.do_run(src, '<=0')
+ test_path = path_from_root('tests', 'core', 'test_i64_i16')
+ src, output = (test_path + s for s in ('.in', '.out'))
+
+ self.do_run_from_file(src, output)
def test_i64_qdouble(self):
if Settings.USE_TYPED_ARRAYS != 2: return self.skip('full i64 stuff only in ta2')