summaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py17
1 files changed, 3 insertions, 14 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 911c7a68..b72ae793 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -1545,22 +1545,11 @@ class T(RunnerCore): # Short name, to make it more fun to use manually on the co
def test_emptyclass(self):
if self.emcc_args is None: return self.skip('requires emcc')
- src = '''
- #include <stdio.h>
-
- struct Randomized {
- Randomized(int x) {
- printf("*zzcheezzz*\\n");
- }
- };
- int main( int argc, const char *argv[] ) {
- new Randomized(55);
+ test_path = path_from_root('tests', 'core', 'test_emptyclass')
+ src, output = (test_path + s for s in ('.in', '.out'))
- return 0;
- }
- '''
- self.do_run(src, '*zzcheezzz*')
+ self.do_run_from_file(src, output)
def test_alloca(self):
src = '''