aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-09-30 18:07:30 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-30 18:07:30 -0700
commit0a8f236b9ebc62b8c6fffd2f6ebdff577a407a0b (patch)
tree6e288e4a18c3625a61bf8d6978ac2354583fc209
parentf3f74a9d68c4f4c04aa1e57d2104b48a90a1333c (diff)
update unistd tests to run only on node
-rw-r--r--tests/test_core.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 3baad0fd..d35bec4e 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -7753,7 +7753,7 @@ def process(filename):
src = open(path_from_root('tests', 'unistd', 'access.c'), 'r').read()
expected = open(path_from_root('tests', 'unistd', 'access.out'), 'r').read()
Building.COMPILER_TEST_OPTS += ['-D' + fs]
- self.do_run(src, expected)
+ self.do_run(src, expected, js_engines=[NODE_JS])
def test_unistd_curdir(self):
if Settings.ASM_JS: Settings.ASM_JS = 2 # skip validation, asm does not support random code
@@ -7793,7 +7793,7 @@ def process(filename):
src = open(path_from_root('tests', 'unistd', 'truncate.c'), 'r').read()
expected = open(path_from_root('tests', 'unistd', 'truncate.out'), 'r').read()
Building.COMPILER_TEST_OPTS += ['-D' + fs]
- self.do_run(src, expected)
+ self.do_run(src, expected, js_engines=[NODE_JS])
def test_unistd_swab(self):
src = open(path_from_root('tests', 'unistd', 'swab.c'), 'r').read()
@@ -7818,7 +7818,7 @@ def process(filename):
for fs in ['MEMFS', 'NODEFS']:
src = open(path_from_root('tests', 'unistd', 'unlink.c'), 'r').read()
Building.COMPILER_TEST_OPTS += ['-D' + fs]
- self.do_run(src, 'success', force_c=True)
+ self.do_run(src, 'success', force_c=True, js_engines=[NODE_JS])
def test_unistd_links(self):
if Settings.ASM_JS: Settings.ASM_JS = 2 # skip validation, asm does not support random code
@@ -7827,7 +7827,7 @@ def process(filename):
src = open(path_from_root('tests', 'unistd', 'links.c'), 'r').read()
expected = open(path_from_root('tests', 'unistd', 'links.out'), 'r').read()
Building.COMPILER_TEST_OPTS += ['-D' + fs]
- self.do_run(src, expected)
+ self.do_run(src, expected, js_engines=[NODE_JS])
def test_unistd_sleep(self):
src = open(path_from_root('tests', 'unistd', 'sleep.c'), 'r').read()
@@ -7842,14 +7842,14 @@ def process(filename):
src = open(path_from_root('tests', 'unistd', 'io.c'), 'r').read()
expected = open(path_from_root('tests', 'unistd', 'io.out'), 'r').read()
Building.COMPILER_TEST_OPTS += ['-D' + fs]
- self.do_run(src, expected)
+ self.do_run(src, expected, js_engines=[NODE_JS])
def test_unistd_misc(self):
for fs in ['MEMFS', 'NODEFS']:
src = open(path_from_root('tests', 'unistd', 'misc.c'), 'r').read()
expected = open(path_from_root('tests', 'unistd', 'misc.out'), 'r').read()
Building.COMPILER_TEST_OPTS += ['-D' + fs]
- self.do_run(src, expected)
+ self.do_run(src, expected, js_engines=[NODE_JS])
def test_uname(self):
src = r'''