aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/testutil
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/testutil')
-rw-r--r--pkg/testutil/norace.go9
-rw-r--r--pkg/testutil/race.go9
2 files changed, 18 insertions, 0 deletions
diff --git a/pkg/testutil/norace.go b/pkg/testutil/norace.go
new file mode 100644
index 000000000..ceb03928f
--- /dev/null
+++ b/pkg/testutil/norace.go
@@ -0,0 +1,9 @@
+// Copyright 2018 syzkaller project authors. All rights reserved.
+// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+//go:build !race
+// +build !race
+
+package testutil
+
+const RaceEnabled = false
diff --git a/pkg/testutil/race.go b/pkg/testutil/race.go
new file mode 100644
index 000000000..96a9043bb
--- /dev/null
+++ b/pkg/testutil/race.go
@@ -0,0 +1,9 @@
+// Copyright 2018 syzkaller project authors. All rights reserved.
+// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+//go:build race
+// +build race
+
+package testutil
+
+const RaceEnabled = true