diff options
Diffstat (limited to 'test/stress')
| -rw-r--r-- | test/stress/maps.go | 2 | ||||
| -rw-r--r-- | test/stress/parsego.go | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/stress/maps.go b/test/stress/maps.go index d022e19ad..fc5ab05a2 100644 --- a/test/stress/maps.go +++ b/test/stress/maps.go @@ -97,6 +97,8 @@ func (m intMap) Len() int { return len(m) } func (m intMap) RangeAll() { for _ = range m { } + for range m { + } } func stressMaps() { diff --git a/test/stress/parsego.go b/test/stress/parsego.go index a781f1993..a5856dd80 100644 --- a/test/stress/parsego.go +++ b/test/stress/parsego.go @@ -64,7 +64,7 @@ func parseDir(dirpath string) map[string]*ast.Package { } func stressParseGo() { - pkgroot := runtime.GOROOT() + "/src/pkg/" + pkgroot := runtime.GOROOT() + "/src/" for { m := make(map[string]map[string]*ast.Package) for _, pkg := range packages { |
