From dc8c4f7dcd29293a6d25e2cc27f808d4ab8f4232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladimir=20T=C3=A1mara=20Pati=C3=B1o?= Date: Tue, 11 Mar 2025 12:12:11 -0500 Subject: [PATCH] Fixes regression test problems in OpenBSD/adJ. Thanks to @holiman. Closes #30961 --- cmd/utils/cmd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index de5918a722..4e03df0c4a 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -60,8 +60,8 @@ const ( // 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 {