1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:34:39 -07:00

cmd/go: match entire error message for test case load_invalid_import_path

This commit is contained in:
Shengyu Zhang 2022-01-28 11:19:52 +08:00
parent 990c14cec8
commit 43078637ef

View File

@ -1,10 +1,10 @@
# Tests issue 49137. The following commands should not panic any way.
! go list '"a"'
stderr 'malformed import path "\\"a\\"": invalid char ''"'''
stderr '^malformed import path "\\"a\\"": invalid char ''"''$'
! go build '' -ldflags='-X "main.Tags="'
stderr 'malformed import path "-ldflags=-X \\"main.Tags=\\"": leading dash'
stderr '^malformed import path "-ldflags=-X \\"main.Tags=\\"": leading dash$'
-- go.mod --
module m