From 72d7a8249d697f91c54e1cfd5bec7042f770cb34 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Wed, 5 May 2021 11:37:13 -0700 Subject: [PATCH] libct/int/checkpoint_test: use t.Helper Otherwise showFile log statements show its own file/line info, rather than that of the caller's. Signed-off-by: Kir Kolyshkin --- libcontainer/integration/checkpoint_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/libcontainer/integration/checkpoint_test.go b/libcontainer/integration/checkpoint_test.go index 06e130608..2d13469da 100644 --- a/libcontainer/integration/checkpoint_test.go +++ b/libcontainer/integration/checkpoint_test.go @@ -14,6 +14,7 @@ import ( ) func showFile(t *testing.T, fname string) error { + t.Helper() t.Logf("=== %s ===\n", fname) f, err := os.Open(fname)