diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-04-16 16:35:18 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-04-17 13:48:18 +0000 |
| commit | acc528cbf40c42eb112d2ce66c5f778bd4a397fb (patch) | |
| tree | 1db39cbb9517df790fdf189d3bd1f59e4b7a8b0c /prog/rand_test.go | |
| parent | 18f6e127bf6e515fc3eee0936bde2415e676e160 (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 'prog/rand_test.go')
| -rw-r--r-- | prog/rand_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prog/rand_test.go b/prog/rand_test.go index ef1d03390..00613d42a 100644 --- a/prog/rand_test.go +++ b/prog/rand_test.go @@ -110,7 +110,7 @@ func TestEnabledCalls(t *testing.T) { } for _, c := range p.Calls { if _, ok := enabledCalls[c.Meta.Name]; !ok { - t.Fatalf("program contains a syscall that is not enabled: %v\n", c.Meta.Name) + t.Fatalf("program contains a syscall that is not enabled: %v", c.Meta.Name) } } } @@ -234,7 +234,7 @@ func TestNoGenerate(t *testing.T) { } for _, c := range p.Calls { if c.Meta.Attrs.NoGenerate { - t.Fatalf("program contains a no_generate syscall: %v\n", c.Meta.Name) + t.Fatalf("program contains a no_generate syscall: %v", c.Meta.Name) } } } |
