From acc528cbf40c42eb112d2ce66c5f778bd4a397fb Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 16 Apr 2024 16:35:18 +0200 Subject: tools/syz-linter: check t.Logf/Errorf/Fatalf messages Fix checking of Logf, it has string in 0-th arg. Add checking of t.Errorf/Fatalf. --- prog/minimization_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prog/minimization_test.go') diff --git a/prog/minimization_test.go b/prog/minimization_test.go index f5b4c34d1..9b7652908 100644 --- a/prog/minimization_test.go +++ b/prog/minimization_test.go @@ -254,7 +254,7 @@ func TestMinimize(t *testing.T) { p1, ci := Minimize(p, test.callIndex, false, test.pred) res := p1.Serialize() if string(res) != test.result { - t.Fatalf("minimization produced wrong result #%v\norig:\n%v\nexpect:\n%v\ngot:\n%v\n", + t.Fatalf("minimization produced wrong result #%v\norig:\n%v\nexpect:\n%v\ngot:\n%v", ti, test.orig, test.result, string(res)) } if ci != test.resultCallIndex { -- cgit mrf-deployment