aboutsummaryrefslogtreecommitdiffstats
path: root/test/readline
Commit message (Collapse)AuthorAgeFilesLines
* Increase wait timeaycabta2021-12-251-1/+2
|
* Wait for output results to test correctlyaycabta2021-12-251-1/+1
|
* Output log after loading class to testaycabta2021-12-241-1/+1
|
* Add logging about timeoutaycabta2021-12-241-0/+2
|
* Kill process before assertion failsaycabta2021-12-241-0/+1
|
* Move embedded lines outside the here documentNobuyoshi Nakada2021-12-241-7/+6
| | | | | So that the actually run test code corresponds to the source file line-by-line.
* Set time limit for waiting for terminating process within a testaycabta2021-12-241-2/+10
|
* test/readline/test_readline.rb: skip a test on i686-linuxYusuke Endoh2021-11-091-0/+6
| | | | | | | | | | | | | | | | | | ... 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>' ```
* test/readline/test_readline.rb: Use TERM=vt100 to run the testsYusuke Endoh2021-11-021-0/+3
| | | | | | | | | | | | | | | | | 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.
* [ruby/readline-ext] Omit Editline on without tty testaycabta2021-09-031-0/+1
| | | | https://github.com/ruby/readline-ext/commit/a2835ce957
* Add a test for Readline.readline without ttyaycabta2021-09-011-0/+14
|
* [ruby/readline-ext] Give up Editlineaycabta2021-08-141-1/+1
| | | | https://github.com/ruby/readline-ext/commit/d924cfc1e6
* Revert "Try to run test_interrupt_in_other_thread with Editline"aycabta2021-08-121-2/+3
| | | | This reverts commit c66b27efbb27c6b6b410457282ac841ead1dd132.
* Try to run test_interrupt_in_other_thread with Editlineaycabta2021-08-121-3/+2
|
* Outer block is required to rescue Timeout::Erroraycabta2021-08-121-2/+2
|
* Add TODO comment to #test_interrupt_in_other_threadaycabta2021-08-111-0/+1
|
* Add comments about testing stepsaycabta2021-08-111-4/+6
|
* Put the result of the process into a variable onceaycabta2021-08-111-2/+4
| | | | To make the meaning of assertion easier to understand,
* Stop exiting to show "SUCCESS"aycabta2021-08-111-1/+0
|
* Add logging about Errno::EPIPEaycabta2021-08-111-0/+1
|
* Write log to stdout immediatelyaycabta2021-08-111-1/+1
|
* Stop checking char from "read"aycabta2021-08-111-3/+6
| | | | Because it's sometimes nil due to race condition.
* Break immediately if assertions finishedaycabta2021-08-111-0/+2
|
* Add "START" logaycabta2021-08-111-0/+1
|
* Add comment about I/O that is not ttyaycabta2021-08-101-0/+1
|
* Omit on Readline 7.0 because it's wrong behaviour for not TTY envaycabta2021-08-091-0/+1
|
* Extended logging for debugging readline failures.Samuel Williams2021-08-091-4/+7
|
* Rework the readline test to be more robust.Samuel Williams2021-08-091-46/+43
| | | | | | - 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.
* Use #full_message instead of #backtrace_locationsaycabta2021-08-081-1/+1
|
* Show backtrace locations when I/O timed outaycabta2021-08-081-2/+2
|
* Show Readline::VERSION for debuggingaycabta2021-08-061-1/+1
|
* Omit test_interrupt_in_other_thread with Editlineaycabta2021-08-061-0/+1
|
* Fix reversal of assertion resultaycabta2021-08-061-1/+1
|
* Fix control structure to preperly catch Timeout::Erroraycabta2021-08-061-25/+27
|
* Show log when timed outaycabta2021-08-051-1/+1
|
* Remove an unused variableaycabta2021-08-041-1/+1
|
* Run interrupt test except on Windowsaycabta2021-08-041-0/+1
|
* Add a load path to require 'helper'aycabta2021-08-041-2/+3
|
* Show the log of test_interrupt_in_other_thread when failedaycabta2021-08-041-1/+1
|
* Check the existence of the test classesaycabta2021-08-041-2/+2
|
* Add a test for handling SIGINT in other threadaycabta2021-08-041-0/+76
|
* Remove half-defined Reline on LoadErrorNobuyoshi Nakada2021-07-101-0/+1
| | | | | When fiddle is not avaiable, reline/terminfo depending on it also fails.
* Fix finish_using_lib_relineaycabta2021-06-211-1/+1
|
* Call super method by teardown of tests of Reline as Readlineaycabta2021-06-212-0/+2
|
* Call Reline-specific method in helper fileaycabta2021-06-213-2/+6
|
* Call Reline.test_reset in teardown of tests for readline definitelyaycabta2021-06-212-0/+8
|
* Use test encoding for TestRelineAsReadline and TestRelineAsReadlineHistoryaycabta2021-06-212-2/+2
|
* Revert "Use Encoding.default_external for tests of Readline::HISTORY"aycabta2021-06-211-4/+4
| | | | This reverts commit 089a26b0a619a649b1958061df8f21a6cdc6cacd.
* Use Encoding.default_external for tests of Readline::HISTORYaycabta2021-06-211-4/+4
|
* [ruby/readline-ext] Use omitNobuyoshi Nakada2021-02-181-4/+4
| | | | https://github.com/ruby/readline-ext/commit/f6dff0a9f6