mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-18 05:56:37 +00:00
cmd/utils: fix geth test issue on OpenBSD (#31357)
This commit is contained in:
parent
e3853e910a
commit
7d99f7df00
1 changed files with 2 additions and 2 deletions
|
|
@ -63,8 +63,8 @@ var ErrImportInterrupted = errors.New("interrupted")
|
||||||
// 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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue