aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-25 17:49:28 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-07-03 15:31:03 -0700
commit20e81c40735a5c98672900d3793f1cc8452b2471 (patch)
treec7e5c4badba7e3aa6b7d28c4bdd7233a3b7954b3 /tests/runner.py
parent8bd809c849bdce4533c0062010e0c88fc1b0d467 (diff)
begin work on memory relocation
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 9afc36d3..7a8ccf6f 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -10611,6 +10611,7 @@ f.close()
def test_static_link(self):
def test(main, side, first=True):
+ #t = main ; main = side ; side = t
open(os.path.join(self.get_dir(), 'main.cpp'), 'w').write(main)
open(os.path.join(self.get_dir(), 'side.cpp'), 'w').write(side)
Popen([PYTHON, EMCC, os.path.join(self.get_dir(), 'side.cpp'), '-o', 'side.js', '-s', 'SIDE_MODULE=1', '-O2']).communicate()
@@ -10621,6 +10622,7 @@ f.close()
out = run_js('together.js', engine=SPIDERMONKEY_ENGINE, stderr=PIPE, full_output=True)
self.assertContained('side says 11.', out)
self.validate_asmjs(out)
+ #if first: test(side, main, False) # test reverse order
test('''
#include <stdio.h>