-
Notifications
You must be signed in to change notification settings - Fork 17.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/go: convert TestIssue17119 to the script test framework
It's already parallel, but we might as well convert it and get rid of the testdata/src dircetory completely. Updates #36320 Change-Id: I75e335b32d64a8ddedd65e4337949b729c9e0fbe Reviewed-on: https://go-review.googlesource.com/c/go/+/212877 Run-TryBot: Michael Matloob <[email protected]> Reviewed-by: Jay Conrod <[email protected]>
- Loading branch information
Showing
6 changed files
with
24 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[!net] skip | ||
|
||
# Issue 17119: Test more duplicate load errors. | ||
! go build dupload | ||
! stderr 'duplicate load|internal error' | ||
stderr 'dupload/vendor/p must be imported as p' | ||
|
||
-- dupload/dupload.go -- | ||
package main | ||
|
||
import ( | ||
_ "dupload/p2" | ||
_ "p" | ||
) | ||
|
||
func main() {} | ||
-- dupload/p/p.go -- | ||
package p | ||
-- dupload/p2/p2.go -- | ||
package p2 | ||
|
||
import _ "dupload/vendor/p" | ||
-- dupload/vendor/p/p.go -- | ||
package p |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.