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

Fix RubyLex test input to end with "\n". This change will also avoid truffleruby test failure. #614

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

tompng
Copy link
Member

@tompng tompng commented Jun 26, 2023

Test in truffleruby was failing but CI passed.
See the Run tests section in https://github.com/ruby/irb/actions/runs/5367916336/jobs/9738431555

Problem

Code passed to termination proc always ends with "\n". Code used to calculate dynamic_prompt and auto_indent also ends with "\n". But in test, input does not end with "\n".
Fixing the test to use input more closer to real date will automatically avoid "=begin" problem.

Reason why CI passed

Test is run in at_exit.
Exit status of ruby -e "at_exit{eval('=begin')}" for truffleruby is 0.

@tompng tompng marked this pull request as ready for review June 26, 2023 20:34
@st0012 st0012 merged commit e68c612 into ruby:master Jun 27, 2023
24 checks passed
@tompng tompng deleted the rubylex_test_always_append_newline branch June 28, 2023 15:37
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.

None yet

2 participants