aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 3f124df7..bf71cf2c 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -1430,11 +1430,17 @@ if 'benchmark' not in str(sys.argv):
#include "emscripten.h"
int main() {
+ EMSCRIPTEN_COMMENT("hello from the source");
emscripten_run_script("print('hello world' + '!')");
return 0;
}
'''
- self.do_test(src, 'hello world!')
+
+ def check(filename):
+ src = open(filename, 'r').read()
+ assert '// hello from the source' in src
+
+ self.do_test(src, 'hello world!', post_build=check)
def test_ssr(self): # struct self-ref
src = '''