diff options
-rw-r--r-- | tests/runner.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index 996b08c5..c86997d6 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -192,11 +192,10 @@ class RunnerCore(unittest.TestCase): except OSError: os.chdir(self.get_dir()) # ensure the current working directory is valid compiler_output = timeout_run(Popen([EMSCRIPTEN, filename + ('.o.ll' if append_ext else ''), '-o', filename + '.o.js'] + settings + extra_args, stdout=PIPE, stderr=STDOUT), TIMEOUT, 'Compiling') - #print compiler_output # Detect compilation crashes and errors if compiler_output is not None and 'Traceback' in compiler_output and 'in test_' in compiler_output: print compiler_output; assert 0 - assert os.path.exists(filename + '.o.js'), 'Emscripten failed to generate .js: ' + str(compiler_output) + assert os.path.exists(filename + '.o.js') and len(open(filename + '.o.js', 'r').read()) > 0, 'Emscripten failed to generate .js: ' + str(compiler_output) if output_processor is not None: output_processor(open(filename + '.o.js').read()) |