]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix Script/build_cwd_newline test
authorRuss Cox <rsc@golang.org>
Wed, 7 Jun 2023 00:47:05 +0000 (20:47 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 7 Jun 2023 14:58:48 +0000 (14:58 +0000)
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>

src/cmd/go/testdata/script/build_cwd_newline.txt

index 574464cc18d9700605df028e1f9aea3c121b0e64..127d24cc68d017d344d44601f76fdd07c0ba7ce5 100644 (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.