do not fail in test_dlfcn_qsort of js engine cannot do asm validation; fixes #1591

This commit is contained in:
Alon Zakai 2013-09-04 15:11:47 -07:00
Родитель d2a3ea8ca8
Коммит c0408d39ab
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -5751,8 +5751,8 @@ def process(filename):
if Settings.ASM_JS and os.path.exists(SPIDERMONKEY_ENGINE[0]): if Settings.ASM_JS and os.path.exists(SPIDERMONKEY_ENGINE[0]):
out = run_js('liblib.so', engine=SPIDERMONKEY_ENGINE, full_output=True, stderr=STDOUT) out = run_js('liblib.so', engine=SPIDERMONKEY_ENGINE, full_output=True, stderr=STDOUT)
assert 'asm' in out if 'asm' in out:
self.validate_asmjs(out) self.validate_asmjs(out)
def test_dlfcn_data_and_fptr(self): def test_dlfcn_data_and_fptr(self):
if Settings.ASM_JS: return self.skip('this is not a valid case - libraries should not be able to access their parents globals willy nilly') if Settings.ASM_JS: return self.skip('this is not a valid case - libraries should not be able to access their parents globals willy nilly')