]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix TestScript/list_test_e on Windows go1.11beta2
authorBryan C. Mills <bcmills@google.com>
Thu, 19 Jul 2018 20:59:50 +0000 (16:59 -0400)
committerBryan C. Mills <bcmills@google.com>
Thu, 19 Jul 2018 21:30:27 +0000 (21:30 +0000)
I forgot to run trybots on CL 123758, and the test failed on Windows because I
hard-coded a slash-delimited path.

Use the tent-in-a-box operator ([/\\]) to make the path platform-agnostic.

Change-Id: I9113ab60d21152c11e2ebdf822b58a44b1b38574
Reviewed-on: https://go-review.googlesource.com/125115
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/testdata/script/list_test_e.txt

index 3e84de6b07cae789e22661b8caefcbc9e54f7633..f1473322c65fbaf93c4956701d032cee648c8c9d 100644 (file)
@@ -1,6 +1,6 @@
 # issue 25980: crash in go list -e -test
 go list -e -test -f '{{.Error}}' p
-stdout '^p/d_test.go:2:8: cannot find package "d" in any of:'
+stdout '^p[/\\]d_test.go:2:8: cannot find package "d" in any of:'
 
 -- p/d.go --
 package d