aboutsummaryrefslogtreecommitdiff
path: root/tests/legacy/test_build_constraints/bar_unknown_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/legacy/test_build_constraints/bar_unknown_test.go')
-rw-r--r--tests/legacy/test_build_constraints/bar_unknown_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/legacy/test_build_constraints/bar_unknown_test.go b/tests/legacy/test_build_constraints/bar_unknown_test.go
new file mode 100644
index 00000000..29d13727
--- /dev/null
+++ b/tests/legacy/test_build_constraints/bar_unknown_test.go
@@ -0,0 +1,14 @@
+// +build !linux
+
+package test_build_constraints
+
+import (
+ "runtime"
+ "testing"
+)
+
+func TestBarUnknown(t *testing.T) {
+ if runtime.GOOS == "linux" {
+ t.Errorf("got %s; want not linux", runtime.GOOS)
+ }
+}