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

Function also_with_asan

test/decorators.py:531–546  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

529
530
531def also_with_asan(func):
532 assert callable(func)
533
534 @wraps(func)
535 def metafunc(self, asan, *args, **kwargs):
536 if asan:
537 if self.is_wasm64():
538 self.skipTest('TODO: ASAN in memory64')
539 if self.is_2gb() or self.is_4gb():
540 self.skipTest('asan doesnt support GLOBAL_BASE')
541 self.cflags.append('-fsanitize=address')
542 return func(self, *args, **kwargs)
543
544 parameterize(metafunc, {'': (False,),
545 'asan': (True,)})
546 return metafunc
547
548
549def also_with_modularize(func):

Callers

nothing calls this directly

Calls 1

parameterizeFunction · 0.85

Tested by

no test coverage detected