aycabta
b4efa37d98
[ruby/readline-ext] Omit Editline on without tty test
...
a2835ce957
2021-09-03 03:34:09 +09:00
aycabta
67eaa222cf
Add a test for Readline.readline without tty
2021-09-01 17:29:01 +09:00
aycabta
9f88135f78
[ruby/readline-ext] Give up Editline
...
d924cfc1e6
2021-08-14 22:13:56 +09:00
aycabta
5196b171d9
Revert "Try to run test_interrupt_in_other_thread with Editline"
...
This reverts commit c66b27efbb
.
2021-08-12 19:47:41 +09:00
aycabta
c66b27efbb
Try to run test_interrupt_in_other_thread with Editline
2021-08-12 15:35:05 +09:00
aycabta
e5f6cd7045
Outer block is required to rescue Timeout::Error
2021-08-12 07:52:39 +09:00
aycabta
c06b39d1d1
Add TODO comment to #test_interrupt_in_other_thread
2021-08-11 17:45:31 +09:00
aycabta
c59da370a5
Add comments about testing steps
2021-08-11 14:08:45 +09:00
aycabta
4f324514aa
Put the result of the process into a variable once
...
To make the meaning of assertion easier to understand,
2021-08-11 14:08:45 +09:00
aycabta
01e49af81d
Stop exiting to show "SUCCESS"
2021-08-11 14:08:45 +09:00
aycabta
2217b82af1
Add logging about Errno::EPIPE
2021-08-11 14:08:45 +09:00
aycabta
7d84251500
Write log to stdout immediately
2021-08-11 14:08:45 +09:00
aycabta
67e06102a3
Stop checking char from "read"
...
Because it's sometimes nil due to race condition.
2021-08-11 14:08:45 +09:00
aycabta
7b10f55354
Break immediately if assertions finished
2021-08-11 14:08:45 +09:00
aycabta
7319b1fa2c
Add "START" log
2021-08-11 14:08:45 +09:00
aycabta
cc1d88daba
Add comment about I/O that is not tty
2021-08-10 02:52:56 +09:00
aycabta
5e633fb99e
Omit on Readline 7.0 because it's wrong behaviour for not TTY env
2021-08-09 18:17:07 +09:00
Samuel Williams
6f6a84f2f3
Extended logging for debugging readline failures.
2021-08-09 17:03:33 +12:00
Samuel Williams
48c43f7783
Rework the readline test to be more robust.
...
- 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.
2021-08-09 11:40:56 +12:00
aycabta
ca2dd6d35a
Use #full_message instead of #backtrace_locations
2021-08-08 15:43:03 +09:00
aycabta
40ccb87a49
Show backtrace locations when I/O timed out
2021-08-08 09:25:12 +09:00
aycabta
e687b6f4da
Show Readline::VERSION for debugging
2021-08-06 03:55:58 +09:00
aycabta
9b56668bf8
Omit test_interrupt_in_other_thread with Editline
2021-08-06 03:50:02 +09:00
aycabta
6414334d3c
Fix reversal of assertion result
2021-08-06 03:17:51 +09:00
aycabta
cd57b39f79
Fix control structure to preperly catch Timeout::Error
2021-08-06 03:15:58 +09:00
aycabta
1cb5a669d3
Show log when timed out
2021-08-05 19:39:22 +09:00
aycabta
042d4c8133
Remove an unused variable
2021-08-04 23:35:08 +09:00
aycabta
6e55facdb3
Run interrupt test except on Windows
2021-08-04 18:29:42 +09:00
aycabta
aba10ea61e
Add a load path to require 'helper'
2021-08-04 18:29:42 +09:00
aycabta
335c12826a
Show the log of test_interrupt_in_other_thread when failed
2021-08-04 18:29:42 +09:00
aycabta
17ef7a98ef
Check the existence of the test classes
2021-08-04 18:29:42 +09:00
aycabta
5ca0a51ffd
Add a test for handling SIGINT in other thread
2021-08-04 18:29:42 +09:00
aycabta
06d52249de
Call super method by teardown of tests of Reline as Readline
2021-06-21 22:29:04 +09:00
aycabta
215fd1bf2c
Call Reline-specific method in helper file
2021-06-21 22:26:11 +09:00
aycabta
574c8ee9f1
Call Reline.test_reset in teardown of tests for readline definitely
2021-06-21 22:12:14 +09:00
aycabta
e11800e114
Use test encoding for TestRelineAsReadline and TestRelineAsReadlineHistory
2021-06-21 22:12:14 +09:00
Nobuyoshi Nakada
9110021fd2
[ruby/readline-ext] Use omit
...
f6dff0a9f6
2021-02-18 21:17:42 +09:00
Nobuyoshi Nakada
d84dd66da0
Fixed a typo in an error class name
2020-12-21 18:17:45 +09:00
Nobuyoshi Nakada
9f60ceec54
Suppress bell during the test
2020-07-18 19:33:11 +09:00
aycabta
4a620aff8d
Restore class variable setting for tests
2020-05-14 12:27:33 +09:00
aycabta
978e691c86
Restore Readline.completion_case_fold in test
2020-05-14 12:27:33 +09:00
aycabta
b621c9abd1
Set Readline.completion_append_character = nil always
...
GNU Readline add a white space when Readline.completion_append_character is
not initialized.
2020-02-29 03:32:36 +09:00
Koichi Sasada
f7be85a2b7
support random order test.
...
test_readline:
HISTORY should be empty.
test_using_quoting_detection_proc:
test_using_quoting_detection_proc_with_multibyte_input:
Readline.completer_quote_characters= and
Readline.completer_word_break_characters= doesn't accept nil,
so skip if previous values are nil.
2020-02-28 23:32:56 +09:00
aycabta
6df8cfb771
Omit test_using_quoting_detection_proc_with_multibyte_input temporarily for random order test
2020-02-28 19:28:11 +09:00
MSP-Greg
da31035687
test/readline - allow ENV control of test class creation
...
In ruby/ruby, the tests run on both readline & reline by creating four test classes:
```
TestReadline
TestReadlineHistory
TestRelineAsReadline
TestRelineAsReadlineHistory
```
Reline inports the test files and uses them in its CI. Adding the ENV control allows it to only run the `TestRelineAsReadline` classes.
2020-02-22 10:01:09 +09:00
S-H-GAMELINKS
5fd5666dcc
support multi-run test for test_readline.rb
2020-02-19 13:47:33 +09:00
aycabta
ac0658e720
[ruby/readline-ext] Check TestRelineAsReadline existance
...
c0a6303168
2020-02-09 20:22:12 +09:00
Lars Kanis
7a51d979cf
Fix inaccuracy in encoding tests
...
These tests assume
Encoding.find('locale') == Encoding.find('external')
and fail if they are distinct.
2020-02-04 08:24:59 +09:00
aycabta
890200e85e
Check DONT_RUN_RELINE_TEST envvar
2020-01-23 13:35:45 +09:00
aycabta
0d3e4b8a79
Use omit instead of skip
2020-01-23 13:31:19 +09:00