diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-03-22 14:24:36 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-03-22 14:24:36 -0700 |
commit | d38cd65d3923b4a519e804200b6f81bdf0722eb3 (patch) | |
tree | 972c0ae01bbeee9badb7629ade6502018ad8ca52 /tests/test_other.py | |
parent | e2e94262c8b2ea1d96a480ed5690e328f316bfee (diff) |
do not warn on missing emscripten_ functions
Diffstat (limited to 'tests/test_other.py')
-rw-r--r-- | tests/test_other.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_other.py b/tests/test_other.py index ded45112..f9b0009d 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -1586,6 +1586,8 @@ This pointer might make sense in another type signature: i: 0 def test_warn_undefined(self): open(os.path.join(self.get_dir(), 'main.cpp'), 'w').write(r''' #include <stdio.h> + #include <SDL.h> + #include "SDL/SDL_opengl.h" extern "C" { void something(); @@ -1593,6 +1595,7 @@ This pointer might make sense in another type signature: i: 0 } int main() { + printf("%p", SDL_GL_GetProcAddress("glGenTextures")); // pull in gl proc stuff, avoid warnings on emulation funcs something(); elsey(); return 0; @@ -1612,6 +1615,7 @@ This pointer might make sense in another type signature: i: 0 self.assertContained('unresolved symbol: something', output[1]) self.assertContained('unresolved symbol: elsey', output[1]) assert os.path.exists('a.out.js') + self.assertNotContained('unresolved symbol: emscripten_', output[1]) elif action == 'ERROR' and value: self.assertContained('unresolved symbol: something', output[1]) self.assertContained('unresolved symbol: elsey', output[1]) |