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. --- pkg/ast/parser_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/ast') diff --git a/pkg/ast/parser_test.go b/pkg/ast/parser_test.go index 5e25157f5..bc66ed4be 100644 --- a/pkg/ast/parser_test.go +++ b/pkg/ast/parser_test.go @@ -76,7 +76,7 @@ func TestParseAll(t *testing.T) { desc4 := desc.Filter(func(n Node) bool { return true }) desc5 := desc.Filter(func(n Node) bool { return false }) if len(desc4.Nodes) != len(desc.Nodes) || len(desc5.Nodes) != 0 { - t.Fatalf("Filter is broken: desc=%v desc4=%v desc5=%v", + t.Fatalf("filter is broken: desc=%v desc4=%v desc5=%v", len(desc.Nodes), len(desc4.Nodes), len(desc5.Nodes)) } }) -- cgit mrf-deployment