]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: stty: add require_controlling_input_terminal_ to bad-speed test
authorChristopher Illarionova <drydench@amazon.com>
Mon, 5 Jan 2026 16:54:00 +0000 (16:54 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 5 Jan 2026 17:20:54 +0000 (17:20 +0000)
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 https://github.com/coreutils/coreutils/pull/160

tests/stty/bad-speed.sh

index 3a022f193ff2e3114b5cbf3637f6a80c1f5362d5..fe4ccfb7dd16b367ac4dc04a90f1cedfe811649a 100755 (executable)
@@ -19,6 +19,7 @@
 
 . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
 print_ver_ stty
+require_controlling_input_terminal_
 require_gcc_shared_
 
 # Replace each cfsetispeed call with a call to these stubs.