From edf016078e61c6481aedf10bd098258647a6ded4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 18 Dec 2025 09:39:38 +0100 Subject: pkg/instance: improve comment about returned errors We return pointers rather than structs directly, this is important if the errors are casted. --- pkg/instance/instance.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg') 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() -- cgit mrf-deployment