summaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
authorVasilis Kalintiris <ehostunreach@gmail.com>2013-12-06 23:29:08 +0200
committerVasilis Kalintiris <ehostunreach@gmail.com>2013-12-07 19:35:52 +0200
commit64b0558bb691baefb7def2b3520e84b0369ddfd3 (patch)
tree212adf83f4678fde70cc2f883e4c7acf15cd144d /tests/test_core.py
parent88ee912b36ba0f3e0ba0cd4f4506faaf3a175736 (diff)
Use do_run_from_file() for test_mainenv
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py13
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 = '''