Fixes regression test problems in OpenBSD/adJ. Thanks to @holiman. Closes #30961

This commit is contained in:
Vladimir Támara Patiño 2025-03-11 12:12:11 -05:00
parent 4cdd7c8631
commit dc8c4f7dcd

View file

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