From: David du Colombier <0intro@gmail.com> Date: Tue, 22 Oct 2019 11:07:15 +0000 (+0200) Subject: cmd/go: fix TestScript/list_ambiguous_path on Plan 9 X-Git-Tag: go1.14beta1~644 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=19d2a1cc2c76a14b4d5066c871b3f3c11125e147;p=gostls13.git cmd/go: fix TestScript/list_ambiguous_path on Plan 9 CL 198459 added TestScript/list_ambiguous_path. This test is failing on Plan 9, because the expected error doesn't match the error message returned on Plan 9. This change fixes the test by matching the correct error message on Plan 9. Fixes #35072. Change-Id: If8cdb641e0e9544ae4ac24f8d0c54859a3b23a69 Reviewed-on: https://go-review.googlesource.com/c/go/+/202447 Run-TryBot: David du Colombier <0intro@gmail.com> TryBot-Result: Gobot Gobot Reviewed-by: Bryan C. Mills --- diff --git a/src/cmd/go/testdata/script/list_ambiguous_path.txt b/src/cmd/go/testdata/script/list_ambiguous_path.txt index 9f1aa37be8..bdb7ffb077 100644 --- a/src/cmd/go/testdata/script/list_ambiguous_path.txt +++ b/src/cmd/go/testdata/script/list_ambiguous_path.txt @@ -22,8 +22,9 @@ stderr 'package ./foo.go/b.go: cannot find package "."' # Multiple patterns for Go files with a typo. This should # treat the wrong pattern as if it were a non-existint file. ! go list ./foo.go/a.go ./foo.go/b.go +[plan9] stderr 'stat ./foo.go/b.go: ''./foo.go/b.go'' does not exist' [windows] stderr './foo.go/b.go: The system cannot find the file specified' -[!windows] stderr './foo.go/b.go: no such file or directory' +[!plan9] [!windows] stderr './foo.go/b.go: no such file or directory' -- a.go -- package main