diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-01 09:49:54 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-03 14:41:31 -0700 |
commit | 822f067c66055cb1c7406a2f08e1f377ff30cf31 (patch) | |
tree | 6e12638ef6f5b1b9f68556c24ca5e847f3bc30bf /tests | |
parent | d555f96ace2cd497ab9f66cfe6ae328d8e52b67c (diff) |
support -E in emcc
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_other.py | 9 |
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 + |