Description: As of torvalds/linux@1b8b20868a6d64cfe8174a21b25b74367bdf0560,
 unsupported ioctls now return ENOTTY instead of EINVAL. This change was
 also backported to the 5.10 stable branch, so it's a problem on the
 current release of many Linux distros now.
Forwarded: https://github.com/pkg/term/pull/71
Author: Stephen Gelman <ssgelm@debian.org>
Last-Update: 2022-01-13
---
This patch header follows DEP-4: http://dep.debian.net/deps/dep3/
--- a/termios/termios_test.go
+++ b/termios/termios_test.go
@@ -1,3 +1,4 @@
+//go:build !windows
 // +build !windows
 
 package termios
@@ -165,7 +166,7 @@
 
 	// some ioctls fail against char devices if they do not
 	// support a particular feature
-	if (runtime.GOOS == "darwin" && err == unix.ENOTTY) || (runtime.GOOS == "linux" && err == unix.EINVAL) {
+	if ((runtime.GOOS == "darwin" || runtime.GOOS == "linux") && err == unix.ENOTTY) || (runtime.GOOS == "linux" && err == unix.EINVAL) {
 		t.Skip(err)
 	}
 }
