summaryrefslogtreecommitdiff
path: root/test/readline
AgeCommit message (Collapse)Author
2024-05-28[ruby/readline-ext] Skip test_interrupt_in_other_thread on arm32-linuxmatoro
This is a combination of main Ruby commit https://github.com/ruby/ruby/commit/aefc98891c42024039f19ef45bdfe93fbc590b7c and my PR correcting the regex https://github.com/ruby/ruby/pull/10819. Upstream Ruby requests that changes to this test go to readline-ext repo before being backported to 3.2 branch. https://github.com/ruby/readline-ext/commit/868f873a78
2024-01-31readline: Skip the test_interrupt_in_other_thread on arm32.Jun Aruga
Skip the test_interrupt_in_other_thread test failing on Travis arm32. The failing test is not a new issue. It had already been skipped in .travis.yml before updating .travis.yml. https://github.com/ruby/ruby/blob/7b05cb8dbbd637910757f402e64da3908b4bb809/.travis.yml#L99-L101 Note that RUBY_PLATFORM is "armv8l-linux-eabihf" on Travis arm32 pipeline. And the readline was deleted in both master and ruby_3_3 branches. https://github.com/ruby/ruby/commit/59fd67fc3d405e529e038172e769ff20a8fb5535 So, we only need this commit on ruby_3_2 and older Ruby version branches.
2022-12-21test_readline#test_without_tty: Use EnvUtil.rubybinSorah Fukumori
`ruby` is not always available in certain build environments and configure options. Choose appropriate command line using EnvUtil. Notes: Merged: https://github.com/ruby/ruby/pull/5417
2021-12-25Increase wait timeaycabta
2021-12-25Wait for output results to test correctlyaycabta
2021-12-24Output log after loading class to testaycabta
2021-12-24Add logging about timeoutaycabta
2021-12-24Kill process before assertion failsaycabta
2021-12-24Move embedded lines outside the here documentNobuyoshi Nakada
So that the actually run test code corresponds to the source file line-by-line.
2021-12-24Set time limit for waiting for terminating process within a testaycabta
Notes: Merged: https://github.com/ruby/ruby/pull/5339
2021-11-09test/readline/test_readline.rb: skip a test on i686-linuxYusuke Endoh
... because readline library (or libtinfo) seems to cause SEGV internally even with Readline 8.1. This SEGV is caught as SystemStackError, which leads to a test failure. http://rubyci.s3.amazonaws.com/debian-i386/ruby-master/log/20211109T030008Z.fail.html.gz ``` 1) Failure: TestReadline#test_interrupt_in_other_thread [/home/chkbuild/chkbuild/tmp/build/20211109T030008Z/ruby/test/readline/test_readline.rb:568]: Unknown failure with exit status pid 13097 exit 1 Log: ** START **Readline::VERSION is 8.1. /home/chkbuild/chkbuild/tmp/build/20211109T030008Z/tmp/interrupt_in_other_thread20211109-6272-kcfqxo:13:in `readline': stack level too deep (SystemStackError) from /home/chkbuild/chkbuild/tmp/build/20211109T030008Z/tmp/interrupt_in_other_thread20211109-6272-kcfqxo:13:in `block in <main>' /home/chkbuild/chkbuild/tmp/build/20211109T030008Z/tmp/interrupt_in_other_thread20211109-6272-kcfqxo:13:in `readline': stack level too deep (SystemStackError) from /home/chkbuild/chkbuild/tmp/build/20211109T030008Z/tmp/interrupt_in_other_thread20211109-6272-kcfqxo:13:in `block in <main>' ```
2021-11-02test/readline/test_readline.rb: Use TERM=vt100 to run the testsYusuke Endoh
Readline seems to emit an escape sequence `"\e[?1034h` at an unpredictable timing when `TERM=xterm` or something. This leads to a noisy random test failure. http://rubyci.s3.amazonaws.com/amazon2/ruby-master/log/20211102T063005Z.fail.html.gz ``` 1) Failure: TestReadline#test_modify_text_in_pre_input_hook [/home/chkbuild/chkbuild/tmp/build/20211102T063005Z/ruby/test/readline/test_readline.rb:404]: <"> hello world\n"> expected but was <"\e[?1034h> hello world\n">. ``` This test is for Ruby's readline extension, not for readline library itself. So here this change force to use "TERM=vt100" to run the tests.
2021-09-03[ruby/readline-ext] Omit Editline on without tty testaycabta
https://github.com/ruby/readline-ext/commit/a2835ce957
2021-09-01Add a test for Readline.readline without ttyaycabta
Notes: Merged: https://github.com/ruby/ruby/pull/4796
2021-08-14[ruby/readline-ext] Give up Editlineaycabta
https://github.com/ruby/readline-ext/commit/d924cfc1e6
2021-08-12Revert "Try to run test_interrupt_in_other_thread with Editline"aycabta
This reverts commit c66b27efbb27c6b6b410457282ac841ead1dd132.
2021-08-12Try to run test_interrupt_in_other_thread with Editlineaycabta
2021-08-12Outer block is required to rescue Timeout::Erroraycabta
2021-08-11Add TODO comment to #test_interrupt_in_other_threadaycabta
2021-08-11Add comments about testing stepsaycabta
2021-08-11Put the result of the process into a variable onceaycabta
To make the meaning of assertion easier to understand,
2021-08-11Stop exiting to show "SUCCESS"aycabta
2021-08-11Add logging about Errno::EPIPEaycabta
2021-08-11Write log to stdout immediatelyaycabta
2021-08-11Stop checking char from "read"aycabta
Because it's sometimes nil due to race condition.
2021-08-11Break immediately if assertions finishedaycabta
2021-08-11Add "START" logaycabta
2021-08-10Add comment about I/O that is not ttyaycabta
2021-08-09Omit on Readline 7.0 because it's wrong behaviour for not TTY envaycabta
2021-08-09Extended logging for debugging readline failures.Samuel Williams
Notes: Merged: https://github.com/ruby/ruby/pull/4722
2021-08-09Rework the readline test to be more robust.Samuel Williams
- Capture that the child is started by initial log line. - More robust handling of child status reaping. - Direct exit without sucess mesage if `#readline` receives input. Notes: Merged: https://github.com/ruby/ruby/pull/4721
2021-08-08Use #full_message instead of #backtrace_locationsaycabta
2021-08-08Show backtrace locations when I/O timed outaycabta
2021-08-06Show Readline::VERSION for debuggingaycabta
2021-08-06Omit test_interrupt_in_other_thread with Editlineaycabta
2021-08-06Fix reversal of assertion resultaycabta
2021-08-06Fix control structure to preperly catch Timeout::Erroraycabta
2021-08-05Show log when timed outaycabta
2021-08-04Remove an unused variableaycabta
2021-08-04Run interrupt test except on Windowsaycabta
Notes: Merged: https://github.com/ruby/ruby/pull/4704
2021-08-04Add a load path to require 'helper'aycabta
Notes: Merged: https://github.com/ruby/ruby/pull/4704
2021-08-04Show the log of test_interrupt_in_other_thread when failedaycabta
Notes: Merged: https://github.com/ruby/ruby/pull/4704
2021-08-04Check the existence of the test classesaycabta
Notes: Merged: https://github.com/ruby/ruby/pull/4704
2021-08-04Add a test for handling SIGINT in other threadaycabta
Notes: Merged: https://github.com/ruby/ruby/pull/4704
2021-07-10Remove half-defined Reline on LoadErrorNobuyoshi Nakada
When fiddle is not avaiable, reline/terminfo depending on it also fails.
2021-06-21Fix finish_using_lib_relineaycabta
2021-06-21Call super method by teardown of tests of Reline as Readlineaycabta
2021-06-21Call Reline-specific method in helper fileaycabta
2021-06-21Call Reline.test_reset in teardown of tests for readline definitelyaycabta
2021-06-21Use test encoding for TestRelineAsReadline and TestRelineAsReadlineHistoryaycabta