MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / make_test

Function make_test

test/test_posixtest.py:167–196  ·  view source on GitHub ↗
(name, testfile, browser)

Source from the content-addressed store, hash-verified

165
166
167def make_test(name, testfile, browser):
168
169 @requires_pthreads
170 def f(self):
171 if not NORETURN_ONLY and name in disabled:
172 self.skipTest(disabled[name])
173
174 args = ['-I' + os.path.join(testsuite_root, 'include'),
175 '-Werror',
176 '-Wno-format-security',
177 '-Wno-int-conversion',
178 '-Wno-format',
179 '-pthread',
180 # Make sure all tests have callstacks to improve debuggability
181 # of log messages on CI runs.
182 '--profiling-funcs',
183 '-sEXIT_RUNTIME',
184 '-sTOTAL_MEMORY=256mb']
185 if name in no_assert_tests:
186 args.append('-sASSERTIONS=0')
187 if browser:
188 args.append('-sPTHREAD_POOL_SIZE=40')
189 self.btest_exit(testfile, cflags=args)
190 else:
191 self.do_runf(testfile, cflags=args, output_basename=name)
192
193 if name in expect_fail:
194 f = unittest.expectedFailure(f)
195
196 return f
197
198
199for testdir in get_tests():

Callers 1

test_posixtest.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected