diff --git a/src/cmd/go/testdata/script/list_pkgconfig_error.txt b/src/cmd/go/testdata/script/list_pkgconfig_error.txt index f554d2a4ed6258..d40d45e39cbb4d 100644 --- a/src/cmd/go/testdata/script/list_pkgconfig_error.txt +++ b/src/cmd/go/testdata/script/list_pkgconfig_error.txt @@ -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