]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: relax the regular expression of TestScript/list_pkgconfig_error
authorqiulaidongfeng <2645477756@qq.com>
Wed, 18 Sep 2024 13:42:40 +0000 (13:42 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 26 Sep 2024 14:01:59 +0000 (14:01 +0000)
Fixes #68283

Change-Id: Ia6af550f0fc232e4ae6f7ea96370138e958aaca2
GitHub-Last-Rev: 206ce8b0d9309e09c7b482d3e0f42a8f47474936
GitHub-Pull-Request: golang/go#68324
Reviewed-on: https://go-review.googlesource.com/c/go/+/596935
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/testdata/script/list_pkgconfig_error.txt

index f554d2a4ed62581eb1a4c657e8b03bcc6d991915..d40d45e39cbb4d092585f6cb43c744e834cccfa1 100644 (file)
@@ -2,7 +2,9 @@
 [!exec:pkg-config] skip 'test requires pkg-config tool'
 
 ! go list -export .
-stderr '^# example\n# \[pkg-config .*\]\n(.*\n)*Package .* not found'
+# 'Package .* not found appears' in pkg-config and pkgconf; while
+# 'could not find package .*' appears in u-config. See #68283.
+stderr '#^ example\n#pkg-config .*\n(.*\n)*(Package .* not found)|(could not find package .*)'
 
 -- go.mod --
 module example