From 89f39ae2d0455f84d0690a120ffda8fdb84d15db Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 8 May 2024 14:18:01 +0200 Subject: 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. --- pkg/host/host_test.go | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit mrf-deployment