Browse Source

build: Use purego build tag on tests

Jakob Borg 9 years ago
parent
commit
8ac862f50a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      build.go

+ 2 - 2
build.go

@@ -339,9 +339,9 @@ func test(pkgs ...string) {
 	}
 
 	if useRace {
-		runPrint("go", append([]string{"test", "-short", "-race", "-timeout", "60s"}, pkgs...)...)
+		runPrint("go", append([]string{"test", "-short", "-race", "-timeout", "60s", "-tags", "purego"}, pkgs...)...)
 	} else {
-		runPrint("go", append([]string{"test", "-short", "-timeout", "60s"}, pkgs...)...)
+		runPrint("go", append([]string{"test", "-short", "-timeout", "60s", "-tags", "purego"}, pkgs...)...)
 	}
 }