summaryrefslogtreecommitdiff
path: root/test/readline
AgeCommit message (Collapse)Author
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
2021-06-21Revert "Use Encoding.default_external for tests of Readline::HISTORY"aycabta
This reverts commit 089a26b0a619a649b1958061df8f21a6cdc6cacd.
2021-06-21Use Encoding.default_external for tests of Readline::HISTORYaycabta
2021-02-18[ruby/readline-ext] Use omitNobuyoshi Nakada
https://github.com/ruby/readline-ext/commit/f6dff0a9f6
2020-12-21Fixed a typo in an error class nameNobuyoshi Nakada
2020-07-18Suppress bell during the testNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/3322
2020-05-14Restore class variable setting for testsaycabta
2020-05-14Restore Readline.completion_case_fold in testaycabta
2020-02-29Set Readline.completion_append_character = nil alwaysaycabta
GNU Readline add a white space when Readline.completion_append_character is not initialized.
2020-02-28support random order test.Koichi Sasada
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-28Omit test_using_quoting_detection_proc_with_multibyte_input temporarily for ↵aycabta
random order test
2020-02-22test/readline - allow ENV control of test class creationMSP-Greg
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. Notes: Merged: https://github.com/ruby/ruby/pull/2916
2020-02-19support multi-run test for test_readline.rbS-H-GAMELINKS
Notes: Merged: https://github.com/ruby/ruby/pull/2914
2020-02-09[ruby/readline-ext] Use require check instead of DONT_RUN_RELINE_TEST envaycabta
https://github.com/ruby/readline-ext/commit/1df99d1481
2020-02-09[ruby/readline-ext] Check TestRelineAsReadline existanceaycabta
https://github.com/ruby/readline-ext/commit/c0a6303168
2020-02-04Fix inaccuracy in encoding testsLars Kanis
These tests assume Encoding.find('locale') == Encoding.find('external') and fail if they are distinct.
2020-01-23Check DONT_RUN_RELINE_TEST envvaraycabta
2020-01-23Use omit instead of skipaycabta
2020-01-23Skip a test that uses assert_ruby_status if it doesn't existaycabta
2020-01-23Stop using minitest dependent methodsaycabta
2020-01-21Reline: Fix changed test results due to change to UTF-8 on WindowsLars Kanis
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. Notes: Merged: https://github.com/ruby/ruby/pull/2848
2019-12-31text/readline/test_readline.rb - fix skip on Reline (#2743)MSP-Greg
TestRelineAsReadline#test_input_metachar passes on MinGW
2019-12-17Fix return condition according to the condition to skipaycabta
2019-12-17Check wether Readline.completion_append_character= existsaycabta
2019-12-13Check wether TestReadline is definedaycabta
2019-12-12Some tests failed with before GNU Readline 6.0 on Windowsaycabta
2019-12-11The result of Readline.completion_proc should have the same encoding of ↵aycabta
Encoding.default_external
2019-12-11skip continuous failure test.Koichi Sasada
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
2019-12-09Remove workaround encoding modificationaycabta
2019-12-08Skip completion tests for Editlineaycabta
2019-12-08Fix encoding of completed listaycabta
2019-12-08Add test_simple_completion for Readlineaycabta
2019-11-18More fixes for $SAFE/taint post mergingJeremy Evans
Notes: Merged: https://github.com/ruby/ruby/pull/2476
2019-11-18Deprecate taint/trust and related methods, and make the methods no-opsJeremy Evans
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. Notes: Merged: https://github.com/ruby/ruby/pull/2476
2019-11-18Warn on access/modify of $SAFE, and remove effects of modifying $SAFEJeremy Evans
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. Notes: Merged: https://github.com/ruby/ruby/pull/2476
2019-11-05Assert return value of Readline.readline only if Ruby is before 2.7aycabta
2019-08-27Fix use_lib_reline for test/readlineaycabta
2019-07-30Do not always taint the result of File#pathJeremy Evans
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]
2019-07-29Revert "Do not always taint the result of File#path"Jeremy Evans
This reverts commit 1a759bfe5d554c22571d2e6e4e5998cf06a7b98f. This fails on some operating systems.
2019-07-29Do not always taint the result of File#pathJeremy Evans
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]
2019-05-29Revert 3b7862c8e88cd7838a53ec083ac5733386400956 causing various CI hangsTakashi Kokubun
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.
2019-05-29Skip a reline test hanging on Wercker since 3b7862c8e8Takashi Kokubun
like https://app.wercker.com/ruby/ruby/runs/mjit-test1/5cedad11105780001c4e7001?step=5cedaf6b48fad200076fe77b
2019-05-22Skip assertion in readline test if Readline version is 4.3Jeremy Evans
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].
2019-05-18Add Reline.test_mode to use with special I/Oaycabta
2019-05-18Remove parent namespace from Readline test classesaycabta
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".