diff options
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py index 90c6267c..3b5b03f2 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -2170,6 +2170,7 @@ if 'benchmark' not in str(sys.argv): def test_runtimelink(self): if Building.LLVM_OPTS: return self.skip('LLVM opts will optimize printf into puts in the parent, and the child will still look for puts') + self.banned_js_engines = [NODE_JS] # node's global scope behaves differently than everything else, needs investigation FIXME header = r''' struct point @@ -2193,7 +2194,7 @@ if 'benchmark' not in str(sys.argv): printf("supp see: %d\n", mainInt); } - //int suppInt = 76; // TODO: Support this. Right now, _str1 will override the main _str1 + int suppInt = 76; ''' supp_name = os.path.join(self.get_dir(), 'supp.c') open(supp_name, 'w').write(supp) @@ -2214,7 +2215,7 @@ if 'benchmark' not in str(sys.argv): int main( int argc, const char *argv[] ) { struct point p = { 54, 2 }; suppFunc(p); - printf("ok.\n"); + printf("main see: %d\nok.\n", suppInt); return 0; } ''' @@ -2226,7 +2227,7 @@ if 'benchmark' not in str(sys.argv): Settings.BUILD_AS_SHARED_LIB = 0 Settings.RUNTIME_LINKED_LIBS = ['liblib.so']; - self.do_run(main, 'supp: 54,2\nmain: 56\nsupp see: 543\nok.') + self.do_run(main, 'supp: 54,2\nmain: 56\nsupp see: 543\nmain see: 76\nok.') def test_dlfcn_basic(self): lib_src = ''' |