test/fixedbugs/bug302: fix test on windows.

Change-Id: I74c2578d1620b37a6486eca00a774b9a736a8899
Reviewed-on: https://go-review.googlesource.com/1222
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Shenghou Ma 2014-12-09 00:13:10 -05:00 committed by Ian Lance Taylor
parent e67a39ed08
commit e8f13700b7
2 changed files with 3 additions and 3 deletions

View file

@ -5,8 +5,8 @@
package main
// Check that the export information is correct in p.6.
import _ "./p"
import _ "p"
// Check that it's still correct in pp.a (which contains p.6).
import _ "./pp"
import _ "pp"

View file

@ -25,7 +25,7 @@ func main() {
run("go", "tool", a+"g", filepath.Join("fixedbugs", "bug302.dir", "p.go"))
run("go", "tool", "pack", "grc", "pp.a", "p."+a)
run("go", "tool", a+"g", filepath.Join("fixedbugs", "bug302.dir", "main.go"))
run("go", "tool", a+"g", "-I", ".", filepath.Join("fixedbugs", "bug302.dir", "main.go"))
os.Remove("p."+a)
os.Remove("pp.a")
os.Remove("main."+a)