aboutsummaryrefslogtreecommitdiffstats
path: root/test/readline
Commit message (Collapse)AuthorAgeFilesLines
* Fixed a typo in an error class nameNobuyoshi Nakada2020-12-211-1/+1
|
* Suppress bell during the testNobuyoshi Nakada2020-07-181-1/+8
|
* Restore class variable setting for testsaycabta2020-05-141-0/+12
|
* Restore Readline.completion_case_fold in testaycabta2020-05-141-0/+3
|
* Set Readline.completion_append_character = nil alwaysaycabta2020-02-291-0/+1
| | | | | GNU Readline add a white space when Readline.completion_append_character is not initialized.
* support random order test.Koichi Sasada2020-02-281-79/+67
| | | | | | | | | | | 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.
* Omit test_using_quoting_detection_proc_with_multibyte_input temporarily for ↵aycabta2020-02-281-2/+3
| | | | random order test
* test/readline - allow ENV control of test class creationMSP-Greg2020-02-222-3/+4
| | | | | | | | | | | | | 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.
* support multi-run test for test_readline.rbS-H-GAMELINKS2020-02-191-0/+2
|
* [ruby/readline-ext] Use require check instead of DONT_RUN_RELINE_TEST envaycabta2020-02-091-1/+3
| | | | https://github.com/ruby/readline-ext/commit/1df99d1481
* [ruby/readline-ext] Check TestRelineAsReadline existanceaycabta2020-02-091-1/+1
| | | | https://github.com/ruby/readline-ext/commit/c0a6303168
* Fix inaccuracy in encoding testsLars Kanis2020-02-041-1/+1
| | | | | | These tests assume Encoding.find('locale') == Encoding.find('external') and fail if they are distinct.
* Check DONT_RUN_RELINE_TEST envvaraycabta2020-01-233-10/+12
|
* Use omit instead of skipaycabta2020-01-231-24/+24
|
* Skip a test that uses assert_ruby_status if it doesn't existaycabta2020-01-231-0/+1
|
* Stop using minitest dependent methodsaycabta2020-01-231-4/+4
|
* Reline: Fix changed test results due to change to UTF-8 on WindowsLars Kanis2020-01-212-4/+20
| | | | | | | | | | In commit f8ea2860b0cac1aec79978e6c44168802958e8af the Reline encoding for native windows console was changed to hardcoded UTF-8. This caused failures in reline and readline tests, but they were hidden, because parallel ruby tests incorrectly used Reline::ANSI as IOGate. Tests failures were raised in single process mode, but not with -j switch. This patch corrects encodings on native Windows console.
* text/readline/test_readline.rb - fix skip on Reline (#2743)MSP-Greg2019-12-311-1/+2
| | | TestRelineAsReadline#test_input_metachar passes on MinGW
* Fix return condition according to the condition to skipaycabta2019-12-171-1/+1
|
* Check wether Readline.completion_append_character= existsaycabta2019-12-171-1/+1
|
* Check wether TestReadline is definedaycabta2019-12-131-2/+2
|
* Some tests failed with before GNU Readline 6.0 on Windowsaycabta2019-12-121-0/+2
|
* The result of Readline.completion_proc should have the same encoding of ↵aycabta2019-12-111-5/+12
| | | | Encoding.default_external
* skip continuous failure test.Koichi Sasada2019-12-111-0/+2
| | | | | | | On mingw this test fails and not solved long time, so skip it. Please revert it when it solved. https://ci.appveyor.com/project/ruby/ruby/builds/29458671/job/9nbcjnfe6p0xnxoe
* Remove workaround encoding modificationaycabta2019-12-091-3/+1
|
* Skip completion tests for Editlineaycabta2019-12-081-0/+3
|
* Fix encoding of completed listaycabta2019-12-081-1/+28
|
* Add test_simple_completion for Readlineaycabta2019-12-081-0/+19
|
* More fixes for $SAFE/taint post mergingJeremy Evans2019-11-181-15/+20
|
* Deprecate taint/trust and related methods, and make the methods no-opsJeremy Evans2019-11-181-0/+15
| | | | | | This removes the related tests, and puts the related specs behind version guards. This affects all code in lib, including some libraries that may want to support older versions of Ruby.
* Warn on access/modify of $SAFE, and remove effects of modifying $SAFEJeremy Evans2019-11-181-15/+0
| | | | | | | | | | | | | | | | | This removes the security features added by $SAFE = 1, and warns for access or modification of $SAFE from Ruby-level, as well as warning when calling all public C functions related to $SAFE. This modifies some internal functions that took a safe level argument to no longer take the argument. rb_require_safe now warns, rb_require_string has been added as a version that takes a VALUE and does not warn. One public C function that still takes a safe level argument and that this doesn't warn for is rb_eval_cmd. We may want to consider adding an alternative method that does not take a safe level argument, and warn for rb_eval_cmd.
* Assert return value of Readline.readline only if Ruby is before 2.7aycabta2019-11-051-1/+1
|
* Fix use_lib_reline for test/readlineaycabta2019-08-271-1/+4
|
* Do not always taint the result of File#pathJeremy Evans2019-07-301-0/+5
| | | | | | | | | | | | | | | | | | The result should only be tainted if the path given to the method was tainted. The code to always taint the result was added in a4934a42cbb84b6679912226581c71b435671f55 (svn revision 4892) in 2003 by matz. However, the change wasn't mentioned in the commit message, and it may have been committed by accident. Skip part of a readline test that uses Reline. Reline in general would pass the test, but Reline's test mode doesn't raise a SecurityError if passing a tainted prompt and $SAFE >= 1. This was hidden earlier because File#path was always returning a tainted string. Fixes [Bug #14485]
* Revert "Do not always taint the result of File#path"Jeremy Evans2019-07-291-5/+0
| | | | | | This reverts commit 1a759bfe5d554c22571d2e6e4e5998cf06a7b98f. This fails on some operating systems.
* Do not always taint the result of File#pathJeremy Evans2019-07-291-0/+5
| | | | | | | | | | | | | | | | | | The result should only be tainted if the path given to the method was tainted. The code to always taint the result was added in a4934a42cbb84b6679912226581c71b435671f55 (svn revision 4892) in 2003 by matz. However, the change wasn't mentioned in the commit message, and it may have been committed by accident. Skip part of a readline test that uses Reline. Reline in general would pass the test, but Reline's test mode doesn't raise a SecurityError if passing a tainted prompt and $SAFE >= 1. This was hidden earlier because File#path was always returning a tainted string. Fixes [Bug #14485]
* Revert 3b7862c8e88cd7838a53ec083ac5733386400956 causing various CI hangsTakashi Kokubun2019-05-291-1/+0
| | | | | | | | | | | | | | | | | | | | | and dependent commits c67934b1c3b40dda5f170b032423e520511c68dd and f0d1dc5cee87dfb023cb43a2db9bcdef5a8dee8f. RubyCI and ci.rvm.jp are almost dead by timeout since this commit. --- Revert "Skip a reline test hanging on Wercker since 3b7862c8e8" This reverts commit f0d1dc5cee87dfb023cb43a2db9bcdef5a8dee8f. Revert "Remove extra items because Reline::HISTORY is a sized queue" This reverts commit c67934b1c3b40dda5f170b032423e520511c68dd. Revert "Use existing instances for LineEditor and Config" This reverts commit 3b7862c8e88cd7838a53ec083ac5733386400956.
* Skip a reline test hanging on Wercker since 3b7862c8e8Takashi Kokubun2019-05-291-0/+1
| | | | like https://app.wercker.com/ruby/ruby/runs/mjit-test1/5cedad11105780001c4e7001?step=5cedaf6b48fad200076fe77b
* Skip assertion in readline test if Readline version is 4.3Jeremy Evans2019-05-221-1/+3
| | | | | | | | | | | Previously, the entire method was not run for Readline 4.3, probably because it was known to fail. Commit c754e979d3eeca51f1b13778f19f347df3da656e removed the check for Readline 4.3. Other than this one assertion, which also doesn't work when using Reline, the method runs correctly when using Readline 4.3. Fixes [Bug #15853].
* Add Reline.test_mode to use with special I/Oaycabta2019-05-181-0/+1
|
* Remove parent namespace from Readline test classesaycabta2019-05-181-5/+5
| | | | | | The namespace "Readline" doesn't exist when running tests if readline.so doesn't exist and Reline exists. So test classes shouldn't be at nested namespaces under "Readline".
* Test ext/readline and lib/reline by test/readlineaycabta2019-05-143-198/+225
|
* Add an assertion message to test of Readline's class variablesaycabta2019-05-141-1/+1
|
* Check that Reline exists on testaycabta2019-05-131-3/+3
|
* Skip tests depend on Readline's special behaviorsaycabta2019-05-131-8/+12
|
* Skip on Windows now when using reline because it causes hang of whole testsNAKAMURA Usaku2019-04-301-1/+2
|
* test_readline.rb: skip readline test for new solaris11s-sunck0kubun2018-12-281-0/+4
| | | | | | | for now. This should be fixed, but let me make this new CI green first to introduce Solaris-related changes later. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Readline: expose rl_completion_quote_character variablenobu2018-09-021-0/+59
| | | | | | | | [Feature #13050] From: georgebrock (George Brocklehurst) <ruby@georgebrock.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/readline/test_readline.rb: fix readline testk0kubun2018-08-231-7/+7
| | | | | | | | | | | | | for mingw. test/lib/minitest/unit.rb: Add 'guards' for mingw. Removed still-unused method `mswin?` from original patch. [Fix GH-1941] From: MSP-Greg <MSP-Greg@users.noreply.github.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_readline.rb: skip teardown failurek0kubun2018-08-151-0/+3
| | | | | | | | https://ci.appveyor.com/project/ruby/ruby/build/9271/job/e88212s136mr0dgr I'll take a look at MSP-Greg's patch on readline later. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e