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 /pkg/ipc | |
| 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 'pkg/ipc')
| -rw-r--r-- | pkg/ipc/ipc_priv_test.go | 2 | ||||
| -rw-r--r-- | pkg/ipc/ipc_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/ipc/ipc_priv_test.go b/pkg/ipc/ipc_priv_test.go index be164911a..054916045 100644 --- a/pkg/ipc/ipc_priv_test.go +++ b/pkg/ipc/ipc_priv_test.go @@ -20,6 +20,6 @@ func TestOutputDeadline(t *testing.T) { c.wait() out := <-c.readDone if string(out) != "done\n" { - t.Errorf("Unexpected output: '%s'", out) + t.Errorf("unexpected output: '%s'", out) } } diff --git a/pkg/ipc/ipc_test.go b/pkg/ipc/ipc_test.go index 859e14948..ffb28d0a6 100644 --- a/pkg/ipc/ipc_test.go +++ b/pkg/ipc/ipc_test.go @@ -94,7 +94,7 @@ func TestExecute(t *testing.T) { flags := []ExecFlags{0, FlagThreaded} for _, flag := range flags { - t.Logf("testing flags 0x%x\n", flag) + t.Logf("testing flags 0x%x", flag) cfg := &Config{ Executor: bin, UseShmem: useShmem, |
