File: termios_bsd_test.go

package info (click to toggle)
golang-github-pkg-term 1.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 244 kB
  • sloc: makefile: 2
file content (18 lines) | stat: -rw-r--r-- 262 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// +build darwin freebsd openbsd netbsd dragonfly

package termios

import (
	"testing"

	"golang.org/x/sys/unix"
)

func TestTcflush(t *testing.T) {
	f := opendev(t)
	defer f.Close()

	if err := Tcflush(f.Fd(), unix.TCIOFLUSH); err != nil {
		t.Fatal(err)
	}
}