aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnthony Pesch <inolen@gmail.com>2013-08-28 14:43:27 -0700
committerAnthony Pesch <inolen@gmail.com>2013-08-29 12:57:33 -0700
commit0d23384af497877ad156af27e6f4aa731acea461 (patch)
tree13af709d64ceda5013f6ac9bf43d35eed22e07b1 /tests
parentf561db380be29e2db4e49d1196a73292c94c4e66 (diff)
run test_stdin in all JS_ENGINES
Diffstat (limited to 'tests')
-rw-r--r--tests/test_other.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_other.py b/tests/test_other.py
index f583cf07..eaa5b0d8 100644
--- a/tests/test_other.py
+++ b/tests/test_other.py
@@ -931,7 +931,9 @@ f.close()
def test_stdin(self):
Building.emcc(path_from_root('tests', 'module', 'test_stdin.c'), output_filename='a.out.js')
open('in.txt', 'w').write('abcdef\nghijkl')
- self.assertContained('abcdef\nghijkl\neof', run_js(os.path.join(self.get_dir(), 'a.out.js'), stdin=open('in.txt')))
+
+ for engine in JS_ENGINES:
+ self.assertContained('abcdef\nghijkl\neof', run_js(os.path.join(self.get_dir(), 'a.out.js'), engine=engine, stdin=open('in.txt')))
def test_ungetc_fscanf(self):
open('main.cpp', 'w').write(r'''