aboutsummaryrefslogtreecommitdiffstats
path: root/syz-hub
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-04-16 16:35:18 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-04-17 13:48:18 +0000
commitacc528cbf40c42eb112d2ce66c5f778bd4a397fb (patch)
tree1db39cbb9517df790fdf189d3bd1f59e4b7a8b0c /syz-hub
parent18f6e127bf6e515fc3eee0936bde2415e676e160 (diff)
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.
Diffstat (limited to 'syz-hub')
-rw-r--r--syz-hub/state/state_test.go2
1 files changed, 1 insertions, 1 deletions
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", "")