1
0
mirror of https://github.com/golang/go synced 2024-09-28 17:24:28 -06:00

cmd/go: fix Script/build_cwd_newline test

This test is fundamentally about testing cgo.
Skip on nocgo builders.
Fixes CGO_ENABLED=0 go test -run=Script/newline

Change-Id: Ic02349e0acd8cf67508c1bd788333f42b30e84fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/501395
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
Russ Cox 2023-06-06 20:47:05 -04:00
parent 688d75b14f
commit b52950f6f7

View File

@ -1,5 +1,6 @@
[GOOS:windows] skip 'filesystem normalizes / to \'
[GOOS:plan9] skip 'filesystem disallows \n in paths'
[!cgo] skip 'testing cgo handling of newlines'
# If the directory path containing a package to be built includes a newline,
# the go command should refuse to even try to build the package.