]> Cypherpunks repositories - gostls13.git/commitdiff
test/fixedbugs/bug302: fix test on windows.
authorShenghou Ma <minux@golang.org>
Tue, 9 Dec 2014 05:13:10 +0000 (00:13 -0500)
committerIan Lance Taylor <iant@golang.org>
Tue, 9 Dec 2014 05:23:35 +0000 (05:23 +0000)
Change-Id: I74c2578d1620b37a6486eca00a774b9a736a8899
Reviewed-on: https://go-review.googlesource.com/1222
Reviewed-by: Ian Lance Taylor <iant@golang.org>
test/fixedbugs/bug302.dir/main.go
test/fixedbugs/bug302.go

index 9f874d08f52ace9a41445dac3ec7f38af48b14d1..281f908fc4662e67fb8f336201c81b5a6d215f0f 100644 (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"
 
index 65c98c4624a1e30794717d8dc5fbcc1990959e70..327d52254cbfd608df46e797c5f608e55b28b7f7 100644 (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)