Skip to content

Conversation

@ChrisDryden
Copy link
Contributor

@ChrisDryden ChrisDryden commented Jan 5, 2026

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.

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.

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.

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.
@pixelb
Copy link
Member

pixelb commented Jan 5, 2026

pushed at e1994cd9a
thanks

@pixelb pixelb closed this Jan 5, 2026
hubot pushed a commit that referenced this pull request Jan 5, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants