enable test_bigswitch* on larger cases, but disable emterpreter due to compilation slowness
This commit is contained in:
Родитель
667dcd2418
Коммит
2469ce6343
|
@ -2217,7 +2217,8 @@ int main() {
|
|||
self.do_run_from_file(src, output)
|
||||
|
||||
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()
|
||||
self.do_run(src, '''34962: GL_ARRAY_BUFFER (0x8892)
|
||||
26214: what?
|
||||
|
@ -2225,7 +2226,9 @@ int main() {
|
|||
''', args=['34962', '26214', '35040'])
|
||||
|
||||
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()
|
||||
self.do_run(switch_case, 'Success!')
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче