Fixes #4104.
R=golang-dev, dave, minux.ma
CC=golang-dev
https://golang.org/cl/
6639051
args = importPaths(args)
var pkgs []*Package
var stk importStack
+ var set = make(map[string]bool)
+
for _, arg := range args {
+ set[arg] = true
+ }
+ for arg := range set {
pkgs = append(pkgs, loadPackage(arg, &stk))
}
ok=false
fi
+# issue 4104
+if [ $(./testgo test fmt fmt fmt fmt fmt | wc -l) -ne 1 ] ; then
+ echo 'go test fmt fmt fmt fmt fmt tested the same package multiple times'
+ ok=false
+fi
+
if $ok; then
echo PASS
else