aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmisc/cgo/testsanitizers/test.bash6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/cgo/testsanitizers/test.bash b/misc/cgo/testsanitizers/test.bash
index bc25617b6c..269db2f341 100755
--- a/misc/cgo/testsanitizers/test.bash
+++ b/misc/cgo/testsanitizers/test.bash
@@ -33,14 +33,14 @@ if $CC --version | grep clang >& /dev/null; then
echo "skipping msan test; clang version $major.$minor (older than 3.6)"
exit 0
fi
-
+
# Clang before 3.8 does not work with Linux at or after 4.1.
# golang.org/issue/12898.
if test "$major" -lt 3 || test "$major" -eq 3 -a "$minor" -lt 8; then
if test "$(uname)" = Linux; then
linuxver=$(uname -r)
- linuxmajor=$(echo $ver | sed -e 's/\([0-9]*\).*/\1/')
- linuxminor=$(echo $ver | sed -e 's/[0-9]*\.\([0-9]*\).*/\1/')
+ linuxmajor=$(echo $linuxver | sed -e 's/\([0-9]*\).*/\1/')
+ linuxminor=$(echo $linuxver | sed -e 's/[0-9]*\.\([0-9]*\).*/\1/')
if test "$linuxmajor" -gt 4 || test "$linuxmajor" -eq 4 -a "$linuxminor" -ge 1; then
echo "skipping msan test; clang version $major.$minor (older than 3.8) incompatible with linux version $linuxmajor.$linuxminor (4.1 or newer)"
exit 0