aboutsummaryrefslogtreecommitdiff
path: root/tests/test_other.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-09-06 18:34:38 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-06 18:34:38 -0700
commit38890204ed1f5f8dd34cced7c42fc9cf42dccab5 (patch)
tree0b6d76adc047a0c81c9e0caf0dbbae93c5461948 /tests/test_other.py
parentb5b49215d4a40566380a769f47a9c1cce74a28b0 (diff)
parentfce749a7066e51d57967889fab0600c285885b4b (diff)
Merge branch 'incoming'
Diffstat (limited to 'tests/test_other.py')
-rw-r--r--tests/test_other.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_other.py b/tests/test_other.py
index fd1a6245..c6f5c333 100644
--- a/tests/test_other.py
+++ b/tests/test_other.py
@@ -1884,3 +1884,12 @@ you should see two lines of text in different colors and a blue rectangle
SDL_Quit called (and ignored)
done.
''' in output, output
+
+ def test_preprocess(self):
+ self.clear()
+
+ out, err = Popen([PYTHON, EMCC, path_from_root('tests', 'hello_world.c'), '-E'], stdout=PIPE).communicate()
+ assert not os.path.exists('a.out.js')
+ assert '''tests/hello_world.c"''' in out
+ assert '''printf("hello, world!''' in out
+