mirror of
https://github.com/golang/go
synced 2024-11-22 04:14:42 -07:00
cmd/go: match entire error message for test case load_invalid_import_path
This commit is contained in:
parent
990c14cec8
commit
43078637ef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user