Skip to content

Commit e1994cd

Browse files
ChrisDrydenpixelb
authored andcommitted
tests: stty: add require_controlling_input_terminal_ to bad-speed test
The bad-speed test runs 'stty ispeed 9600' without a --file argument, which requires a controlling terminal. Without it, stty fails early with 'Inappropriate ioctl for device' before reaching cfsetispeed, causing the test to skip with a misleading 'LD_PRELOAD interception failed' message. * tests/stty/bad-speed.sh: Add require_controlling_input_terminal_ to match the other stty tests (stty.sh, stty-pairs.sh, stty-row-col.sh, stty-invalid.sh) which all require a controlling terminal. From #160
1 parent 2e0c328 commit e1994cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/stty/bad-speed.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
2121
print_ver_ stty
22+
require_controlling_input_terminal_
2223
require_gcc_shared_
2324

2425
# Replace each cfsetispeed call with a call to these stubs.

0 commit comments

Comments
 (0)