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. --- vm/vm_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm') diff --git a/vm/vm_test.go b/vm/vm_test.go index c147ac049..f927a337a 100644 --- a/vm/vm_test.go +++ b/vm/vm_test.go @@ -424,10 +424,10 @@ func testMonitorExecution(t *testing.T, test *Test) { t.Fatalf("want title %q, got title %q", test.Report.Title, rep.Title) } if !bytes.Equal(test.Report.Report, rep.Report) { - t.Fatalf("want report:\n%s\n\ngot report:\n%s\n", test.Report.Report, rep.Report) + t.Fatalf("want report:\n%s\n\ngot report:\n%s", test.Report.Report, rep.Report) } if test.Report.Output != nil && !bytes.Equal(test.Report.Output, rep.Output) { - t.Fatalf("want output:\n%s\n\ngot output:\n%s\n", test.Report.Output, rep.Output) + t.Fatalf("want output:\n%s\n\ngot output:\n%s", test.Report.Output, rep.Output) } } -- cgit mrf-deployment