disable TestDeadcodeElimination on windows

This commit is contained in:
aarzilli 2025-01-26 09:06:44 +01:00
parent 082a3658e7
commit 0f94115d1c

View file

@ -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 (