cli/internal/prompter/echo_linux_test.go
Pavel Dostál 9c4184de6f Address review feedback on echo mode polling
- Rename echo_test_{linux,darwin}.go to echo_{linux,darwin}_test.go so
  they are only compiled during tests
- Narrow build tag from !windows to linux || darwin to avoid compile
  failures on other Unix platforms
- Return error from waitForEchoDisabled instead of calling t.Fatal,
  since the function is called from goroutines where FailNow would only
  terminate the calling goroutine
2026-05-07 20:20:39 +02:00

5 lines
91 B
Go

package prompter_test
import "golang.org/x/sys/unix"
const ioctlGetTermios = unix.TCGETS