diff --git a/.builds/linux.yml b/.builds/linux.yml index 430d1757..e25bbcc4 100644 --- a/.builds/linux.yml +++ b/.builds/linux.yml @@ -28,11 +28,11 @@ tasks: sudo apt install -y google-chrome-stable - test_gio: | cd gio - go test ./... + go test -race ./... GOOS=windows go test -exec=wine ./... - test_example: | cd gio/example - go test ./... + go test -race ./... - test_cmd: | cd gio/cmd go test ./... diff --git a/cmd/gogio/wayland_test.go b/cmd/gogio/wayland_test.go index bd93aa77..d98f2279 100644 --- a/cmd/gogio/wayland_test.go +++ b/cmd/gogio/wayland_test.go @@ -72,7 +72,7 @@ func (d *WaylandTestDriver) Start(t_ *testing.T, path string, width, height int) cleanups = append(cleanups, func() { os.RemoveAll(dir) }) bin := filepath.Join(dir, "red") - cmd := exec.Command("go", "build", "-tags", "nox11", "-o="+bin, path) + cmd := exec.Command("go", "build", "-race", "-tags", "nox11", "-o="+bin, path) if out, err := cmd.CombinedOutput(); err != nil { d.t.Fatalf("could not build app: %s:\n%s", err, out) } diff --git a/cmd/gogio/x11_test.go b/cmd/gogio/x11_test.go index 8df1cf6a..05a1f147 100644 --- a/cmd/gogio/x11_test.go +++ b/cmd/gogio/x11_test.go @@ -69,7 +69,7 @@ func (d *X11TestDriver) Start(t_ *testing.T, path string, width, height int) (cl cleanups = append(cleanups, func() { os.RemoveAll(dir) }) bin := filepath.Join(dir, "red") - cmd := exec.Command("go", "build", "-tags", "nowayland", "-o="+bin, path) + cmd := exec.Command("go", "build", "-race", "-tags", "nowayland", "-o="+bin, path) if out, err := cmd.CombinedOutput(); err != nil { d.t.Fatalf("could not build app: %s:\n%s", err, out) }