...

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

Documentation: cmd/go/testdata/script

     1[!cgo] skip 'test verifies cgo pkg-config errors'
     2[!exec:pkg-config] skip 'test requires pkg-config tool'
     3
     4! go list -export .
     5stderr '^# example\n# \[pkg-config .*\]\n(.*\n)*Package .* not found'
     6
     7-- go.mod --
     8module example
     9go 1.20
    10-- example.go --
    11package example
    12
    13// #cgo pkg-config: libnot-a-valid-cgo-library
    14import "C"
    15
    16package main() {}

View as plain text