From 0f94115d1cad6c30b643039d2f148182d67e4891 Mon Sep 17 00:00:00 2001 From: aarzilli Date: Sun, 26 Jan 2025 09:06:44 +0100 Subject: [PATCH] disable TestDeadcodeElimination on windows --- cobra_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cobra_test.go b/cobra_test.go index c867282..2ba6b3e 100644 --- a/cobra_test.go +++ b/cobra_test.go @@ -242,6 +242,10 @@ func TestRpad(t *testing.T) { // // See also: https://github.com/spf13/cobra/pull/1956 func TestDeadcodeElimination(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("go tool nm fails on windows") + } + // check that a simple program using cobra in its default configuration is // linked with deadcode elimination enabled. const (