aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/list_pkgconfig_error.txt
blob: 7d671a64389b5afb22b5f6d16e7e1133e62d2b82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[!cgo] skip 'test verifies cgo pkg-config errors'
[!exec:pkg-config] skip 'test requires pkg-config tool'

! go list -export .
stderr '^go build example:\n# pkg-config (.*\n)+pkg-config: exit status \d+$'

-- go.mod --
module example
go 1.20
-- example.go --
package example

// #cgo pkg-config: libnot-a-valid-cgo-library
import "C"

package main() {}