From 1dff53dc25a42aeeca592d5701a6740f3144211d Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Thu, 3 Jul 2025 12:29:03 +0200 Subject: pkg/report: use crash.KASANUnknown instead of crash.KASANOther What we need is the category for "matched unknown KASAN bug". This king on bugs should be recategorised. The final goal is to keep this category empty. --- pkg/bisect/bisect_test.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'pkg/bisect/bisect_test.go') diff --git a/pkg/bisect/bisect_test.go b/pkg/bisect/bisect_test.go index 11d14d4fc..30c83db32 100644 --- a/pkg/bisect/bisect_test.go +++ b/pkg/bisect/bisect_test.go @@ -918,47 +918,47 @@ func TestMostFrequentReport(t *testing.T) { { name: "one infrequent", reports: []*report.Report{ - {Title: "A", Type: crash.KASANOther}, - {Title: "B", Type: crash.KASANOther}, + {Title: "A", Type: crash.KASANRead}, + {Title: "B", Type: crash.KASANRead}, {Title: "C", Type: crash.Bug}, - {Title: "D", Type: crash.KASANOther}, + {Title: "D", Type: crash.KASANRead}, {Title: "E", Type: crash.Bug}, - {Title: "F", Type: crash.KASANOther}, + {Title: "F", Type: crash.KASANRead}, {Title: "G", Type: crash.LockdepBug}, }, // LockdepBug was too infrequent. - types: []crash.Type{crash.KASANOther, crash.Bug}, + types: []crash.Type{crash.KASANRead, crash.Bug}, report: "A", other: true, }, { name: "ignore hangs", reports: []*report.Report{ - {Title: "A", Type: crash.KASANOther}, - {Title: "B", Type: crash.KASANOther}, + {Title: "A", Type: crash.KASANRead}, + {Title: "B", Type: crash.KASANRead}, {Title: "C", Type: crash.Hang}, - {Title: "D", Type: crash.KASANOther}, + {Title: "D", Type: crash.KASANRead}, {Title: "E", Type: crash.Hang}, {Title: "F", Type: crash.Hang}, {Title: "G", Type: crash.Warning}, }, // Hang is not a preferred report type. - types: []crash.Type{crash.KASANOther, crash.Warning}, + types: []crash.Type{crash.KASANRead, crash.Warning}, report: "A", other: true, }, { name: "take hangs", reports: []*report.Report{ - {Title: "A", Type: crash.KASANOther}, - {Title: "B", Type: crash.KASANOther}, + {Title: "A", Type: crash.KASANRead}, + {Title: "B", Type: crash.KASANRead}, {Title: "C", Type: crash.Hang}, {Title: "D", Type: crash.Hang}, {Title: "E", Type: crash.Hang}, {Title: "F", Type: crash.Hang}, }, // There are so many Hangs that we can't ignore it. - types: []crash.Type{crash.Hang, crash.KASANOther}, + types: []crash.Type{crash.Hang, crash.KASANRead}, report: "C", }, { -- cgit mrf-deployment