mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
misc/cgo/testsanitizers: skip tests when vm.overcommit_memory=2
Fixes #17689. Change-Id: I45a14e6bf4b2647431105f3e0b63b7076b6655d2 Reviewed-on: https://go-review.googlesource.com/32635 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
3345802e8a
commit
ced137fad4
@ -15,6 +15,11 @@ if test -x "$(type -p clang)"; then
|
||||
fi
|
||||
export CC
|
||||
|
||||
if [ "$(sysctl -n vm.overcommit_memory)" = 2 ]; then
|
||||
echo "skipping msan/tsan tests: vm.overcommit_memory=2" >&2
|
||||
exit 0
|
||||
fi
|
||||
|
||||
msan=yes
|
||||
|
||||
TMPDIR=${TMPDIR:-/tmp}
|
||||
|
Loading…
x
Reference in New Issue
Block a user