aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-05-08 14:18:01 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-05-08 12:26:59 +0000
commit89f39ae2d0455f84d0690a120ffda8fdb84d15db (patch)
tree90e6bd471df26d582a19db2f7334037d64ca5111 /pkg
parent4ed7e8fc82c8bd239761cc8c0aa55cad646e94d9 (diff)
pkg/host: disable TestDetectSupportedSyscalls/fallback under race detector
For some reason it started to consistently timeout on CI (got 3 failures in a row). Disable it under race detector.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/host/host_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/host/host_test.go b/pkg/host/host_test.go
index 6e9770744..f39b6bc68 100644
--- a/pkg/host/host_test.go
+++ b/pkg/host/host_test.go
@@ -8,6 +8,7 @@ import (
"runtime"
"testing"
+ "github.com/google/syzkaller/pkg/testutil"
"github.com/google/syzkaller/prog"
_ "github.com/google/syzkaller/sys"
)
@@ -15,6 +16,9 @@ import (
func TestDetectSupportedSyscalls(t *testing.T) {
// Note: this test is not parallel because it modifies global testFallback var.
for _, fallback := range []bool{false, true} {
+ if testutil.RaceEnabled && fallback {
+ continue // too slow under race detector
+ }
t.Run(fmt.Sprintf("fallback=%v", fallback), func(t *testing.T) {
oldFallback := testFallback
testFallback = fallback