- 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
5 lines
91 B
Go
5 lines
91 B
Go
package prompter_test
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
const ioctlGetTermios = unix.TCGETS
|