]> Cypherpunks.ru repositories - gostls13.git/commitdiff
cmd/go: make pkg-config check less picky
authorAustin Clements <austin@google.com>
Wed, 18 Oct 2023 14:48:50 +0000 (10:48 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 18 Oct 2023 15:03:54 +0000 (15:03 +0000)
CL 529219 tweaked the list_pkgconfig_error script test currently to
expect pkg-config to fail with "Package .* not found$", but on several
OSes (at least OpenBSD, AIX, and Solaris), pkg-config prints "Package
libnot-a-valid-cgo-library was not found in the pkg-config search
path". Fix the test on these OSes by dropping the "$" so the test
doesn't require the line to end with "not found".

Change-Id: I40c577521f34c360a1d62355596958f6f969eb54
Reviewed-on: https://go-review.googlesource.com/c/go/+/536195
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Austin Clements <austin@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

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

index 8e5a278dd0e5bdfa548fd2dd51f5d44c5b0210e9..de6eafd2c222211824cd8743400560481c410064 100644 (file)
@@ -2,7 +2,7 @@
 [!exec:pkg-config] skip 'test requires pkg-config tool'
 
 ! go list -export .
-stderr '^go build example:\n# pkg-config (.*\n)+Package .* not found$'
+stderr '^go build example:\n# pkg-config (.*\n)+Package .* not found'
 
 -- go.mod --
 module example