diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2025-12-18 09:39:38 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2025-12-18 09:06:55 +0000 |
| commit | edf016078e61c6481aedf10bd098258647a6ded4 (patch) | |
| tree | 5af1ded960f9ea3f9ed6ffa9311d164e2992222d | |
| parent | a066d2bc4b02c5b24dfc01dae9d50e32f3ed6c0e (diff) | |
pkg/instance: improve comment about returned errors
We return pointers rather than structs directly,
this is important if the errors are casted.
| -rw-r--r-- | pkg/instance/instance.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index df0d74b98..1d0adc5d6 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -256,8 +256,8 @@ func (err *CrashError) Error() string { } // Test boots numVMs VMs, tests basic kernel operation, and optionally tests the provided reproducer. -// TestError is returned if there is a problem with kernel/image (crash, reboot loop, etc). -// CrashError is returned if the reproducer crashes kernel. +// *TestError is returned if there is a problem with kernel/image (crash, reboot loop, etc). +// *CrashError is returned if the reproducer crashes kernel. func (env *env) Test(numVMs int, reproSyz, reproOpts, reproC []byte) ([]EnvTestResult, error) { if env.testSem != nil { env.testSem.Wait() |
