aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* test/webrick/test_ssl_server.rb: Use EnvUtil.timeout for timeout scale factorYusuke Endoh2019-06-131-1/+1
| | | | | | | | | https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190613T091708Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190612T011708Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190611T211707Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190604T171708Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190529T091707Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190528T031708Z.fail.html.gz
* test/lib/test/unit/assertions.rb (assert_cpu_usage_low): tweak the waitYusuke Endoh2019-06-131-1/+1
| | | | | | | It still fails randomly. https://rubyci.org/logs/rubyci.s3.amazonaws.com/amazon2/ruby-master/log/20190613T093003Z.fail.html.gz https://rubyci.org/logs/mswinci.japaneast.cloudapp.azure.com/vc12-x64/ruby-master/log/20190613T051547Z.fail.html.gz
* Continue to the next line beginning with a pipelineNobuyoshi Nakada2019-06-131-0/+1
|
* parse.y: moved pipeline to exprNobuyoshi Nakada2019-06-131-1/+1
| | | | To allow arguments without parentheses.
* Add pipeline operator [Feature #15799]Nobuyoshi Nakada2019-06-132-0/+9
|
* IO#set_encoding_by_bomNobuyoshi Nakada2019-06-131-0/+8
| | | | | * io.c (rb_io_set_encoding_by_bom): IO#set_encoding_by_bom to set the encoding by BOM if exists. [Bug #15210]
* Clarify the Ruby version support status in IRB moreTakashi Kokubun2019-06-131-13/+19
|
* make sync-default-gems GEM=irbTakashi Kokubun2019-06-134-21/+50
| | | | | | Upgrade IRB to https://github.com/ruby/irb/commit/41ea43a4a732e094acfa1b0fc1473fdcda9e6227 Mostly backport changes.
* Another incomplete string caseNobuyoshi Nakada2019-06-121-0/+2
|
* Ripper::Lexer: fallback parse error token to the previous oneNobuyoshi Nakada2019-06-121-1/+1
|
* Fix SystemStackError when calling a method in an unused refinementJeremy Evans2019-06-111-0/+32
| | | | Fixes [Bug #15720]
* assert_cpu_usage_low with timeout scaleNobuyoshi Nakada2019-06-112-9/+18
| | | | | | * test/lib/test/unit/assertions.rb (assert_cpu_usage_low): apply the timeout scale to measuring period. this assertion is very runtime environment dependent.
* MIN_HZ and MIN_MEASURABLE constantsNobuyoshi Nakada2019-06-111-4/+6
| | | | | | * test/lib/test/unit/assertions.rb (Test::Unit::Assertions): promoted MIN_HZ and MIN_MEASURABLE as constants, which should be constant through the process.
* Generalize timeout_scaleNobuyoshi Nakada2019-06-112-10/+11
| | | | | | | | | | | * test/lib/test/unit.rb (Test::Unit::TimeoutOption): renamed SubprocessOption. * test/lib/test/unit.rb (Test::Unit::TimeoutOption#setup_options): prefer `--timeout-scale` option. * test/lib/test/unit.rb (Test::Unit::TimeoutOption#non_options): prefer `ENV["RUBY_TEST_TIMEOUT_SCALE"]`.
* Refined syntax error messagesNobuyoshi Nakada2019-06-111-2/+2
|
* &. is not allowed inside LHS of massignNobuyoshi Nakada2019-06-111-0/+5
| | | | https://hackerone.com/reports/605262
* test/lib/test/unit/assertions.rb (assert_cpu_usage_low): Relax the limitYusuke Endoh2019-06-111-1/+1
| | | | | | | CPU usage 1% causes occesional test failure. Try to use 5%. https://rubyci.org/logs/rubyci.s3.amazonaws.com/gentoo/ruby-master/log/20190604T153002Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/gentoo/ruby-master/log/20190610T153002Z.fail.html.gz
* test/net/http/test_http.rb: Extend the timeoutYusuke Endoh2019-06-111-2/+2
| | | | https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10s/ruby-master/log/20190610T071910Z.log.html.gz
* Make Resolv::DNS#each_name accept Resolv::IPv{4,6} argumentsJeremy Evans2019-06-081-0/+24
| | | | | | | | | These arguments were previously documented as supported, but not actually supported. Patch from Toru Iwase Fixes [Bug #15900]
* Split test_strip_bom for each encodingNobuyoshi Nakada2019-06-091-12/+34
|
* Add tests of the encoding with BOMNobuyoshi Nakada2019-06-091-4/+4
|
* Remove unnecessary variablesaycabta2019-06-081-1/+0
|
* Report a sudden death of workersNobuyoshi Nakada2019-06-071-0/+2
|
* test/openssl/utils.rb: Extend the timeout for armv7lYusuke Endoh2019-06-071-1/+1
| | | | https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190607T051708Z.fail.html.gz
* ripper_state_lex.rb: chomp CRNobuyoshi Nakada2019-06-071-0/+15
| | | | | | | | | * lib/rdoc/parser/ripper_state_lex.rb (RDoc::Parser::RipperStateLex): chomp newline, including CR, from here document terminator. Closes: ruby/rdoc#694 Closes: ruby/rdoc#697 Closes: ruby/rdoc#705
* compile.c: Partially revert r63870 which caused wrong optimizationYusuke Endoh2019-06-071-0/+15
| | | | [Bug #15906]
* Skip one assertion for OpenSSL::PKey::EC::Point#mul on LibreSSLJeremy Evans2019-06-061-2/+8
| | | | | LibreSSL 2.8.0+ does not support multiple elements in the first argument.
* test/openssl/utils.rb: Extend the timeoutYusuke Endoh2019-06-071-2/+3
| | | | https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190606T171708Z.fail.html.gz
* test/webrick/test_filehandler.rb: extend the timeout for Solaris CIYusuke Endoh2019-06-061-0/+2
| | | | https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10s/ruby-master/log/20190602T031908Z.fail.html.gz
* test/net/http/test_http.rb: extend the timeout for Solaris CIYusuke Endoh2019-06-061-5/+5
| | | | https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10s/ruby-master/log/20190605T231909Z.fail.html.gz
* test/openssl: Support OpenSSL 1.1.1Yusuke Endoh2019-06-068-51/+214
| | | | | | | | | | | OpenSSL 1.1.1 rejects some shorter keys, which caused some failures of `make test-all TESTS=openssl`. https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian/ruby-master/log/20190606T003005Z.fail.html.gz This change merges 6bbc31ddd1 and 63fb3a36d1 in https://github.com/ruby/openssl. Reference: https://github.com/ruby/openssl/pull/217
* Skip transpose-words if less than 2 wordaycabta2019-06-061-0/+76
|
* Add test_ed_transpose_words_for_mbcharaycabta2019-06-061-0/+42
|
* error.c: avoid infinite recursion at inspecting the frozen objectNobuyoshi Nakada2019-06-051-0/+15
|
* Test for f1f04caf60e4fc9dc3b12109e0be831f2d692810Nobuyoshi Nakada2019-06-051-0/+8
|
* Include inspect value of object in FrozenError messagesJeremy Evans2019-06-042-2/+2
| | | | | | | | | | FrozenError#receiver was added recently for getting the related object programmatically. However, there are cases where FrozenError is raised and not handled, and in those cases the resulting error messages lack detail, which makes debugging the error more difficult, especially in cases where the error is not easily reproducible. This includes the inspect value of the frozen object in FrozenError messages, which should make debugging simpler.
* suppress marshal warningsNobuyoshi Nakada2019-06-041-2/+10
|
* test/lib/test/unit.rb: use colorize.rbNobuyoshi Nakada2019-06-041-26/+9
|
* Renamed duplicate testNobuyoshi Nakada2019-06-041-1/+1
|
* Add aliases for commands for changing text macroaycabta2019-06-041-0/+14
|
* Implement transpose-wordsaycabta2019-06-041-0/+42
|
* Remove conflict resolution mistake [ci skip]Takashi Kokubun2019-06-041-2/+2
| | | | in de541fe1961370e64541d73c96cf790d30f28604 :bow:
* Improve test_color to prevent regressionTakashi Kokubun2019-06-041-2/+1
| | | | | Actually de541fe1961370e64541d73c96cf790d30f28604 was still needed. This commit would improve the test coverage using the branch.
* colorize_code must return escaped textTakashi Kokubun2019-06-041-2/+3
| | | | | This was needed before 0c459af7c233adb5f44022350bfe8fa132d8053e but it could be actually useless now. But I added this anyway just in case.
* Colorize error charactersNobuyoshi Nakada2019-06-041-8/+5
| | | | | | * lib/irb/color.rb (IRB::Color.scan): ignore "incomplete end of input" error only, to colorize invalid characters, e.g., control characters, and invalid symbols, as errors.
* Fix the error token on "invalid hex escape"Nobuyoshi Nakada2019-06-032-1/+11
| | | | | * parse.y (tok_hex): flush token after dispatching the "invalid hex escape" parse error.
* Make size on an infinite each_slice enumerator return InfinityJeremy Evans2019-06-021-0/+5
| | | | Fixes [Bug #15889]
* Use lines instead of splitKazuhiro NISHIYAMA2019-06-031-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ``` % cat ~/bench-split.yml prelude: | s = "foo\nbar\nbaz\n" benchmark: '/(?<=\n)/': | s.split(/(?<=\n)/) '/^/': | s.split(/^/) 'lines': | s.lines Warming up -------------------------------------- /(?<=\n)/ 459.123k i/s - 467.844k times in 1.018994s (2.18μs/i) /^/ 467.922k i/s - 469.744k times in 1.003894s (2.14μs/i) lines 2.343M i/s - 2.424M times in 1.034677s (426.84ns/i) Calculating ------------------------------------- /(?<=\n)/ 422.347k i/s - 1.377M times in 3.261232s (2.37μs/i) /^/ 477.603k i/s - 1.404M times in 2.939186s (2.09μs/i) lines 2.485M i/s - 7.028M times in 2.828757s (402.47ns/i) Comparison: lines: 2484631.6 i/s /^/: 477603.3 i/s - 5.20x slower /(?<=\n)/: 422346.5 i/s - 5.88x slower ```
* The C-q is also quoted insert in emacs modeaycabta2019-06-031-0/+13
|
* Add aliases for commands for moving macroaycabta2019-06-031-0/+11
|