diff options
Diffstat (limited to 'tests/test_core.py')
-rw-r--r-- | tests/test_core.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 466ffcc6..fb4a4ff8 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -952,15 +952,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_mainenv(self): - src = ''' - #include <stdio.h> - int main(int argc, char **argv, char **envp) - { - printf("*%p*\\n", envp); - return 0; - } - ''' - self.do_run(src, '*(nil)*') + test_path = path_from_root('tests', 'core', 'test_mainenv') + src, output = (test_path + s for s in ('.in', '.out')) + + self.do_run_from_file(src, output) def test_funcs(self): src = ''' |