From 068074c109a5a78de746b47b0f1bd2915936809c Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 12 Feb 2026 13:03:22 -0800 Subject: [PATCH] portlist: also tb.Skip benchmarks (not just tests) on bad Linux kernels Updates #16966 Change-Id: I0269927bdf8e6c4e949fcf755ce7e5fd21386d7d Signed-off-by: Brad Fitzpatrick --- portlist/portlist_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/portlist/portlist_test.go b/portlist/portlist_test.go index 5e0964b24..922cb7a1e 100644 --- a/portlist/portlist_test.go +++ b/portlist/portlist_test.go @@ -11,7 +11,7 @@ import ( "tailscale.com/tstest" ) -func maybeSkip(t *testing.T) { +func maybeSkip(t testing.TB) { if runtime.GOOS == "linux" { tstest.SkipOnKernelVersions(t, "https://github.com/tailscale/tailscale/issues/16966", @@ -214,6 +214,7 @@ func BenchmarkGetListIncremental(b *testing.B) { } func benchmarkGetList(b *testing.B, incremental bool) { + maybeSkip(b) b.ReportAllocs() var p Poller p.init()