From 1381fd32b4ae0134dbd41629ce657b026df44f1a Mon Sep 17 00:00:00 2001 From: v2ray Date: Sun, 27 Mar 2016 22:21:44 +0800 Subject: [PATCH] fix build test for windows --- tools/build/go_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/build/go_test.go b/tools/build/go_test.go index 780cc51b2..11c9cadc0 100644 --- a/tools/build/go_test.go +++ b/tools/build/go_test.go @@ -2,7 +2,6 @@ package main import ( "bytes" - "fmt" "os" "os/exec" "path/filepath" @@ -19,10 +18,12 @@ func TestBuildAndRun(t *testing.T) { v2testing.Current(t) gopath := os.Getenv("GOPATH") - target := filepath.Join(gopath, "src", "v2ray_test") - fmt.Println(target) goOS := parseOS(runtime.GOOS) goArch := parseArch(runtime.GOARCH) + target := filepath.Join(gopath, "src", "v2ray_test") + if goOS == Windows { + target += ".exe" + } err := buildV2Ray(target, "v1.0", goOS, goArch) assert.Error(err).IsNil()