diff options
Diffstat (limited to 'tests/test_core.py')
-rw-r--r-- | tests/test_core.py | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index c6ab5ab9..66ef952b 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -1002,20 +1002,10 @@ class T(RunnerCore): # Short name, to make it more fun to use manually on the co self.do_run_from_file(src, output) def test_globals(self): - src = ''' - #include <stdio.h> - - char cache[256], *next = cache; + test_path = path_from_root('tests', 'core', 'test_globals') + src, output = (test_path + s for s in ('.in', '.out')) - int main() - { - cache[10] = 25; - next[20] = 51; - printf("*%d,%d*\\n", next[10], cache[20]); - return 0; - } - ''' - self.do_run(src, '*25,51*') + self.do_run_from_file(src, output) def test_linked_list(self): src = ''' |