]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix test.bash
authorDave Cheney <dave@cheney.net>
Sun, 9 Feb 2014 23:41:47 +0000 (10:41 +1100)
committerDave Cheney <dave@cheney.net>
Sun, 9 Feb 2014 23:41:47 +0000 (10:41 +1100)
commit414b45d91a3bcb5dacd5061c9a93cb8936592b87
tree18e05aacc77c82aae1f36bde268bf685aa47e428
parent730f51ab58cebb05eb06eea5113e4c2bcb1aff65
cmd/go: fix test.bash

Fixes #7260.

Fix three broken tests in test.bash

The test for issue 4568 was confused by go $ACTION . producing a package root of "", avoiding this mode fixes the test but weakens the test.

The test for issue 4773 was broken on linux because math/Rand would fail to resolve as a package causing the test for duplicates to be skipped.

Finally, the last breakage was a small change in the error message.

Also, add test for foldDup.

LGTM=iant
R=iant, rsc
CC=golang-codereviews
https://golang.org/cl/61070044
src/cmd/go/pkg_test.go [new file with mode: 0644]
src/cmd/go/test.bash