diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-04-10 14:29:33 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-04-10 14:29:45 -0700 |
commit | 7b6f5e349ea9e07546f52553ae6c386a2bce2a0f (patch) | |
tree | a6ea51e78f31875605585683d912c314950af345 | |
parent | 0850228acbc2005f564552ac0bf5707f3f5b027f (diff) |
fix test_static_link zlib for new musl
-rw-r--r-- | tests/test_other.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/test_other.py b/tests/test_other.py index 16b5ab92..cdea493a 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -856,10 +856,14 @@ This pointer might make sense in another type signature: i: 0 if engine == SPIDERMONKEY_ENGINE: self.validate_asmjs(out) # zlib compression library. tests function pointers in initializers and many other things - test('zlib', '', open(path_from_root('tests', 'zlib', 'example.c'), 'r').read(), - self.get_zlib_library(), - open(path_from_root('tests', 'zlib', 'ref.txt'), 'r').read(), - args=['-I' + path_from_root('tests', 'zlib')], suffix='c') + try: + os.environ['EMCC_FORCE_STDLIBS'] = 'libcextra' + test('zlib', '', open(path_from_root('tests', 'zlib', 'example.c'), 'r').read(), + self.get_zlib_library(), + open(path_from_root('tests', 'zlib', 'ref.txt'), 'r').read(), + args=['-I' + path_from_root('tests', 'zlib')], suffix='c') + finally: + del os.environ['EMCC_FORCE_STDLIBS'] use_cmake = WINDOWS bullet_library = get_bullet_library(self, use_cmake) |