mirror of
https://github.com/creack/pty.git
synced 2026-04-01 02:57:06 +09:00
Notify about intentionally using blocking io on Darwin
This commit is contained in:
@@ -72,6 +72,13 @@ func TestReadClose(t *testing.T) {
|
||||
|
||||
// Open pty and setup watchdogs for graceful and not so graceful failure modes
|
||||
func prepare(t *testing.T) (ptmx *os.File, done func()) {
|
||||
if runtime.GOOS == "darwin" {
|
||||
t.Log("creack/pty uses blocking i/o on darwin intentionally:")
|
||||
t.Log("> https://github.com/creack/pty/issues/52")
|
||||
t.Log("> https://github.com/creack/pty/pull/53")
|
||||
t.Log("> https://github.com/golang/go/issues/22099")
|
||||
t.SkipNow()
|
||||
}
|
||||
|
||||
// Due to data race potential in (*os.File).Fd()
|
||||
// we should never run these two tests in parallel
|
||||
|
||||
Reference in New Issue
Block a user