cmd/utils: fix geth test issue on OpenBSD (#31357)

This commit is contained in:
Vladimir Támara Patiño 2025-03-15 13:35:10 -04:00 committed by sivaratrisrinivas
parent edb38590f5
commit 68fa1275de

View file

@ -63,8 +63,8 @@ var ErrImportInterrupted = errors.New("interrupted")
// is redirected to a different file.
func Fatalf(format string, args ...interface{}) {
w := io.MultiWriter(os.Stdout, os.Stderr)
if runtime.GOOS == "windows" {
// The SameFile check below doesn't work on Windows.
if runtime.GOOS == "windows" || runtime.GOOS == "openbsd" {
// The SameFile check below doesn't work on Windows neither OpenBSD.
// stdout is unlikely to get redirected though, so just print there.
w = os.Stdout
} else {