Fix test configurations used in test_minimal_runtime_hello_pthread (#12774)

I believe this tests is always supposed to run with
MINIMAL_RUNTIME.  Without this change the half of the
innter test runs just run with pthreads which is
redundant.
This commit is contained in:
Sam Clegg 2020-11-13 12:49:02 -08:00 коммит произвёл GitHub
Родитель a14e861db1
Коммит dc4a8ef1b0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 2 удалений

4
tests/test_browser.py поставляемый
Просмотреть файл

@ -4484,8 +4484,8 @@ window.close = function() {
# Tests that a pthreads build of -s MINIMAL_RUNTIME=1 works well in different build modes
def test_minimal_runtime_hello_pthread(self):
for opts in [[], ['-O3']]:
for modularize in [[], ['-s', 'MODULARIZE=1', '-s', 'EXPORT_NAME=MyModule', '-s', 'MINIMAL_RUNTIME=1']]:
self.btest(path_from_root('tests', 'pthread', 'hello_thread.c'), expected='1', args=['-s', 'USE_PTHREADS=1'] + modularize + opts)
for modularize in [[], ['-s', 'MODULARIZE=1', '-s', 'EXPORT_NAME=MyModule']]:
self.btest(path_from_root('tests', 'pthread', 'hello_thread.c'), expected='1', args=['-s', 'MINIMAL_RUNTIME=1', '-s', 'USE_PTHREADS=1'] + modularize + opts)
# Tests memory growth in pthreads mode, but still on the main thread.
@requires_threads