aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/list_case_collision.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/go/testdata/script/list_case_collision.txt')
-rw-r--r--src/cmd/go/testdata/script/list_case_collision.txt22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/cmd/go/testdata/script/list_case_collision.txt b/src/cmd/go/testdata/script/list_case_collision.txt
index 73f44b63a0..181a202989 100644
--- a/src/cmd/go/testdata/script/list_case_collision.txt
+++ b/src/cmd/go/testdata/script/list_case_collision.txt
@@ -8,30 +8,34 @@ stderr 'case-insensitive import collision'
# List files explicitly on command line, to encounter case-checking
# logic even on case-insensitive filesystems.
-cp example/b/file.go example/b/FILE.go # no-op on case-insensitive filesystems
-! go list example/b/file.go example/b/FILE.go
+cp b/file.go b/FILE.go # no-op on case-insensitive filesystems
+! go list b/file.go b/FILE.go
stderr 'case-insensitive file name collision'
-mkdir example/a/Pkg # no-op on case-insensitive filesystems
-cp example/a/pkg/pkg.go example/a/Pkg/pkg.go # no-op on case-insensitive filesystems
+mkdir a/Pkg # no-op on case-insensitive filesystems
+cp a/pkg/pkg.go a/Pkg/pkg.go # no-op on case-insensitive filesystems
! go list example/a/pkg example/a/Pkg
# Test that the path reported with an indirect import is correct.
-cp example/b/file.go example/b/FILE.go
+cp b/file.go b/FILE.go
[case-sensitive] ! go build example/c
[case-sensitive] stderr '^package example/c\n\timports example/b: case-insensitive file name collision: "FILE.go" and "file.go"$'
--- example/a/a.go --
+-- go.mod --
+module example
+
+go 1.16
+-- a/a.go --
package p
import (
_ "example/a/pkg"
_ "example/a/Pkg"
)
--- example/a/pkg/pkg.go --
+-- a/pkg/pkg.go --
package pkg
--- example/b/file.go --
+-- b/file.go --
package b
--- example/c/c.go --
+-- c/c.go --
package c
import _ "example/b"