pkg/runtest, pkg/csource: don't run tests on openbsd

The tests are currently broken on openbsd.
This commit is contained in:
Dmitry Vyukov 2018-09-16 11:36:38 +02:00
parent 2c2e5f7129
commit fd85ed4885
2 changed files with 9 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import (
"fmt"
"math/rand"
"os"
"runtime"
"strings"
"testing"
"time"
@ -16,6 +17,10 @@ import (
)
func TestGenerate(t *testing.T) {
switch runtime.GOOS {
case "openbsd":
t.Skipf("broken on %v", runtime.GOOS)
}
t.Parallel()
for _, target := range prog.AllTargets() {
switch target.OS {

View File

@ -17,6 +17,10 @@ import (
)
func Test(t *testing.T) {
switch runtime.GOOS {
case "openbsd":
t.Skipf("broken on %v", runtime.GOOS)
}
for _, sysTarget := range targets.List["test"] {
sysTarget1 := targets.Get(sysTarget.OS, sysTarget.Arch)
t.Run(sysTarget1.Arch, func(t *testing.T) {