Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: TestScript/list_ambiguous_path failing on Plan 9 #35072

Closed
0intro opened this issue Oct 22, 2019 · 1 comment
Closed

cmd/go: TestScript/list_ambiguous_path failing on Plan 9 #35072

0intro opened this issue Oct 22, 2019 · 1 comment

Comments

@0intro
Copy link
Member

0intro commented Oct 22, 2019

CL 198459 added TestScript/list_ambiguous_path. This test is failing on Plan 9 because the returned error doesn't match the expected no such file or directory error.

--- FAIL: TestScript (0.02s)
    --- FAIL: TestScript/list_ambiguous_path (0.59s)
        script_test.go:191: 
            # Ensures that we can correctly list package patterns ending in '.go'.
            # See golang.org/issue/34653.
            # A single pattern for a package ending in '.go'. (0.100s)
            # Multiple patterns for packages including one ending in '.go'. (0.105s)
            # A single pattern for a Go file. (0.177s)
            # A single typo-ed pattern for a Go file. This should
            # treat the wrong pattern as if it were a package. (0.094s)
            # Multiple patterns for Go files with a typo. This should
            # treat the wrong pattern as if it were a non-existint file. (0.089s)
            > ! go list ./foo.go/a.go ./foo.go/b.go
            [stderr]
            stat ./foo.go/b.go: './foo.go/b.go' does not exist
            [exit status: 'go 22795: 1']
            > [windows] stderr './foo.go/b.go: The system cannot find the file specified'
            > [!windows] stderr './foo.go/b.go: no such file or directory'
            FAIL: testdata/script/list_ambiguous_path.txt:26: no match for `(?m)./foo.go/b.go: no such file or directory` found in stderr
            
FAIL
FAIL	cmd/go	304.965s
@0intro 0intro self-assigned this Oct 22, 2019
@gopherbot
Copy link

Change https://golang.org/cl/202447 mentions this issue: cmd/go: fix TestScript/list_ambiguous_path on Plan 9

@golang golang locked and limited conversation to collaborators Oct 21, 2020
@rsc rsc unassigned 0intro Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants