1
0
mirror of https://github.com/golang/go synced 2024-09-23 23:20:14 -06: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:
Russ Cox 2016-11-02 16:33:33 -04:00
parent 3345802e8a
commit ced137fad4

View File

@ -15,6 +15,11 @@ if test -x "$(type -p clang)"; then
fi fi
export CC 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 msan=yes
TMPDIR=${TMPDIR:-/tmp} TMPDIR=${TMPDIR:-/tmp}