From 9299e50599d467d681e8e1494186203c7dbc7200 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Tue, 13 Dec 2022 09:34:30 +0100 Subject: [PATCH] Adapt `lcov_coverage_test` to `exec.Command` change (#3392) `exec.Command` no longer implicitly looks in the current directory with Go 1.19. --- tests/core/coverage/lcov_coverage_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/core/coverage/lcov_coverage_test.go b/tests/core/coverage/lcov_coverage_test.go index 95800f85f2..238daff1dd 100644 --- a/tests/core/coverage/lcov_coverage_test.go +++ b/tests/core/coverage/lcov_coverage_test.go @@ -117,6 +117,7 @@ package lib_test import ( "os/exec" + "path/filepath" "strings" "testing" @@ -130,7 +131,7 @@ func TestLib(t *testing.T) { } func TestTool(t *testing.T) { - err := exec.Command("Tool").Run() + err := exec.Command(filepath.Join(".", "Tool")).Run() if err != nil { t.Error(err) }