Skip to content

Commit 19d2a1c

Browse files
committed
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
1 parent 95544cc commit 19d2a1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cmd/go/testdata/script/list_ambiguous_path.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ stderr 'package ./foo.go/b.go: cannot find package "."'
2222
# Multiple patterns for Go files with a typo. This should
2323
# treat the wrong pattern as if it were a non-existint file.
2424
! go list ./foo.go/a.go ./foo.go/b.go
25+
[plan9] stderr 'stat ./foo.go/b.go: ''./foo.go/b.go'' does not exist'
2526
[windows] stderr './foo.go/b.go: The system cannot find the file specified'
26-
[!windows] stderr './foo.go/b.go: no such file or directory'
27+
[!plan9] [!windows] stderr './foo.go/b.go: no such file or directory'
2728

2829
-- a.go --
2930
package main

0 commit comments

Comments
 (0)