]> Cypherpunks repositories - gostls13.git/commit
syscall: skip TestUnshareMountNameSpaceChroot on platforms that require external...
authorBryan C. Mills <bcmills@google.com>
Thu, 24 Aug 2023 14:45:11 +0000 (10:45 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 24 Aug 2023 17:32:08 +0000 (17:32 +0000)
commitdb24f63b108eb26546aa0b675d3cb649a6b597bb
tree04a732db25f50130e93893b2bf38d6bf3afc825a
parentfe2c686b63804b0e22295f02e4e58ddbb3da5898
syscall: skip TestUnshareMountNameSpaceChroot on platforms that require external linking

TestUnshareMountNameSpaceChroot attempts to build a statically-linked
binary to run in a chroot, and sets CGO_ENABLED=0 in order to do so.
Rather than trying to figure out some other way to coax the linker
into building a static binary, let's just skip the test on Linux
platforms that require external linking (namely android/arm).

This should fix the build failure reported in
https://build.golang.org/log/1ea245a9c2e916c81043db177be76778bab00058.

While we're here, let's also fix the failure logging to make the text
readable!

Updates #46330.

Change-Id: I4fa07640ce012ac141bf4698bc3215a7f146062c
Reviewed-on: https://go-review.googlesource.com/c/go/+/522182
Auto-Submit: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/syscall/exec_linux_test.go