Commit 4e92198
authored
Fix the tty_path test on FreeBSD (#334)
On FreeBSD, ttyname(3) may not return exactly the same name as was used
to open the file descriptor. For example, "/dev/tty" is an alias for
whatever the real tty device is. But paths like "/dev/pts/0" aren't
aliases. If the user can open them, ttyname() will always return their
own name.
Note that the test will still fail on non-Linux, non-Darwin due to an
unrelated Rustix bug. See
bytecodealliance/rustix#8321 parent 5e9248c commit 4e92198
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
| 125 | + | |
125 | 126 | | |
126 | | - | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
0 commit comments