summaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-02-10 16:56:29 +0000
committerEli Schwartz <eschwartz93@gmail.com>2024-02-23 15:59:22 -0500
commit8ba0ea68017b489b0a461abbd375f319dc7a48f3 (patch)
treec95c54fbdf9b86c3722efcf095407fe3674199c4 /mesonbuild/mtest.py
parent715dc27b2b8432d9749df985f262de8a8347c59b (diff)
downloadmeson-8ba0ea68017b489b0a461abbd375f319dc7a48f3.tar.gz
mtest: set MSAN_OPTIONS to abort by default
Followup to 7b7d2e060b447de9c2642848847370a58711ac1c which handles ASAN and UBSAN. It turns out that MSAN needs the same treatment. I've checked other sanitizers like HWASAN and TSAN - it looks like they may both need it too, but Meson doesn't currently suppose those anyway (see https://github.com/mesonbuild/meson/pull/12648). Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r--mesonbuild/mtest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index d9ae783d9..b43f165ed 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -1414,6 +1414,8 @@ class SingleTestRunner:
env['ASAN_OPTIONS'] = 'halt_on_error=1:abort_on_error=1:print_summary=1'
if ('UBSAN_OPTIONS' not in env or not env['UBSAN_OPTIONS']):
env['UBSAN_OPTIONS'] = 'halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1'
+ if ('MSAN_OPTIONS' not in env or not env['MSAN_OPTIONS']):
+ env['UBSAN_OPTIONS'] = 'halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1'
if self.options.gdb or self.test.timeout is None or self.test.timeout <= 0:
timeout = None