enable test_bigswitch* on larger cases, but disable emterpreter due to compilation slowness

This commit is contained in:
Alon Zakai 2015-06-16 15:47:15 -07:00
Родитель 667dcd2418
Коммит 2469ce6343
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -2217,7 +2217,8 @@ int main() {
self.do_run_from_file(src, output) self.do_run_from_file(src, output)
def test_bigswitch(self): def test_bigswitch(self):
if self.run_name != 'default': return self.skip('TODO: issue #781') if self.is_emterpreter(): return self.skip('todo')
self.banned_js_engines = [SPIDERMONKEY_ENGINE] # bug 1174230
src = open(path_from_root('tests', 'bigswitch.cpp')).read() src = open(path_from_root('tests', 'bigswitch.cpp')).read()
self.do_run(src, '''34962: GL_ARRAY_BUFFER (0x8892) self.do_run(src, '''34962: GL_ARRAY_BUFFER (0x8892)
26214: what? 26214: what?
@ -2225,7 +2226,9 @@ int main() {
''', args=['34962', '26214', '35040']) ''', args=['34962', '26214', '35040'])
def test_biggerswitch(self): def test_biggerswitch(self):
num_cases = 2000 # TODO: Increase this to ~20000 range, since seeing autogenerated code that reaches that many cases. if self.is_emterpreter(): return self.skip('todo')
self.banned_js_engines = [SPIDERMONKEY_ENGINE] # bug 1174230
num_cases = 20000
switch_case, err = Popen([PYTHON, path_from_root('tests', 'gen_large_switchcase.py'), str(num_cases)], stdout=PIPE, stderr=PIPE).communicate() switch_case, err = Popen([PYTHON, path_from_root('tests', 'gen_large_switchcase.py'), str(num_cases)], stdout=PIPE, stderr=PIPE).communicate()
self.do_run(switch_case, 'Success!') self.do_run(switch_case, 'Success!')