diff options
author | Bryan C. Mills <bcmills@google.com> | 2018-07-19 16:59:50 -0400 |
---|---|---|
committer | Bryan C. Mills <bcmills@google.com> | 2018-07-19 21:30:27 +0000 |
commit | c814ac44c0571f844718f07aa52afa47e37fb1ed (patch) | |
tree | 601f9ef73945eb9abf73457f12c2b8adc8984fcf | |
parent | d365890ba6b7b51f69e65d32dd76d3e59f83ece9 (diff) | |
download | go1.11beta2.tar.gz go1.11beta2.zip |
cmd/go: fix TestScript/list_test_e on Windowsgo1.11beta2
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>
-rw-r--r-- | src/cmd/go/testdata/script/list_test_e.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/go/testdata/script/list_test_e.txt b/src/cmd/go/testdata/script/list_test_e.txt index 3e84de6b07..f1473322c6 100644 --- a/src/cmd/go/testdata/script/list_test_e.txt +++ b/src/cmd/go/testdata/script/list_test_e.txt @@ -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 |