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. --- syz-hub/state/state_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'syz-hub') diff --git a/syz-hub/state/state_test.go b/syz-hub/state/state_test.go index ad90d6aaf..335f02ea0 100644 --- a/syz-hub/state/state_test.go +++ b/syz-hub/state/state_test.go @@ -95,7 +95,7 @@ func TestRepro(t *testing.T) { t.Helper() repro := st.PendingRepro(name) if string(repro) != result { - t.Fatalf("PendingRepro returned %q, want %q", string(repro), result) + t.Fatalf("got %q, want %q", string(repro), result) } } expectPendingRepro("foo", "") -- cgit mrf-deployment