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

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

View as plain text