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. --- dashboard/app/app_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dashboard/app/app_test.go') diff --git a/dashboard/app/app_test.go b/dashboard/app/app_test.go index 4e8e4efde..99da350aa 100644 --- a/dashboard/app/app_test.go +++ b/dashboard/app/app_test.go @@ -947,7 +947,7 @@ func TestPurgeOldCrashes(t *testing.T) { // A sanity check for the test itself. if !firstCrashExists() { - t.Fatalf("The first reported crash should be present") + t.Fatalf("the first reported crash should be present") } // Unreport the first crash. @@ -970,7 +970,7 @@ func TestPurgeOldCrashes(t *testing.T) { } // Check that the unreported crash was purged. if firstCrashExists() { - t.Fatalf("The unreported crash should have been purged.") + t.Fatalf("the unreported crash should have been purged") } } -- cgit mrf-deployment