The cause is that in `python3.14`, `fcntl.ioctl` now throws a buffer overflow error when the buffer is too small or too large (see https://github.com/python/cpython/pull/132919). This caused the Python interpreter to fail terminal detection and not properly echo user commands back to the screen. Fix by dropping the custom terminal size check entirely and using the built-in `sys.stdin.isatty()` instead. Fixes #173302
13 lines
337 B
Plaintext
13 lines
337 B
Plaintext
# RUN: rm -rf %t.stdout %t.stderr
|
|
# RUN: cat %s | %lldb --script-language python > %t.stdout 2> %t.stderr
|
|
# RUN: cat %t.stdout | FileCheck %s --check-prefix STDOUT
|
|
# RUN: cat %t.stderr | FileCheck %s --check-prefix STDERR
|
|
script
|
|
variable = 300
|
|
print(variable)
|
|
print(not_value)
|
|
quit
|
|
|
|
# STDOUT: 300
|
|
# STDERR: NameError{{.*}}is not defined
|