Debian Codegraph @

compiler-rt/test/scudo/standalone/unit/gwp_asan/lit.site.cfg.py.in

raw
1 @LIT_SITE_CFG_IN_HEADER@
2
3 # Load common config for all compiler-rt unit tests.
4 lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/unittests/lit.common.unit.configured")
5
6 # Setup config name.
7 config.name = 'ScudoStandalone-Unit-GwpAsanTorture'
8
9 # Setup test source and exec root.
10 # For unit tests, we define it as build directory with unit tests.
11 config.test_exec_root = "@COMPILER_RT_BINARY_DIR@/lib/scudo/standalone/tests"
12 config.test_source_root = config.test_exec_root
13
14 # This is a second run of the Scudo test suite, but this time under a "torture"
15 # GWP-ASan mode. Every allocation that can go to GWP-ASan, should go to
16 # GWP-ASan. This ensures that GWP-ASan allocations meet the same testing
17 # requirements as the native Scudo allocations. Reserves 409MiB of vaddr space
18 # for the guarded pool, and this should be paged in on demand. If necessary (for
19 # 32-bit or places where kernel commits immediately), this could possibly be
20 # reduced.
21 config.environment['SCUDO_OPTIONS'] = 'GWP_ASAN_SampleRate=1:GWP_ASAN_MaxSimultaneousAllocations=100000'
22
23 # GWP-ASan doesn't support malloc-type mismatch.
24 config.environment['SKIP_TYPE_MISMATCH'] = '1'