Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change debug test workaround only enabled when output is tty #949

Merged
merged 1 commit into from
May 4, 2024

Conversation

tompng
Copy link
Member

@tompng tompng commented May 4, 2024

In #943, we add a workaround puts but it caused IRB binding spec failure in ruby/ruby#10712.

To minimize the impact and to avoid test failure in other project, I think it is better to restrict this workaround only to tty environment.
For other projects that runs integration test using IO.popen in other projects won't be affected by the workaround.
The workaround still works for debug because debug uses PTY.open, not IO.popen.

@st0012 st0012 merged commit 3f231b8 into ruby:master May 4, 2024
30 checks passed
@tompng tompng deleted the stdio_input_puts_only_tty branch May 5, 2024 07:30
@dgutov
Copy link
Contributor

dgutov commented Sep 24, 2024

@tompng FWIW, that puts workaround added a superfluous newline in Emacs' inf-ruby before every prompt (to remind: StdioInputMethod is used there since #907), and this didn't fix it (@stdout.tty? returns true).

EDIT: Sorry, that's #990.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants