aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * remove trailing spaces, append newline at EOF.git2019-06-1929-2515/+2515
|
* Temporary disabled to invoke assert_output_unchanged.Hiroshi SHIBATA2019-06-191-20/+20
| | | | Because some environment created the different results from test fixtures.
* Workaround for the external file for racc testHiroshi SHIBATA2019-06-191-0/+2
|
* use TEMP_DIR.Hiroshi SHIBATA2019-06-191-3/+3
|
* Use Test::Unit instead of Minitest and fixed test error with ruby repo.Hiroshi SHIBATA2019-06-192-17/+9
| | | | Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* Restore test_dir and update prefix for Dir.mktmpdir.Hiroshi SHIBATA2019-06-191-7/+8
|
* Try to use Dir.mktmpdir.Hiroshi SHIBATA2019-06-191-3/+3
|
* Fixed path for ruby core repository.Hiroshi SHIBATA2019-06-191-3/+6
|
* Backport racc-1.4.15 from upstream.Hiroshi SHIBATA2019-06-1987-0/+70010
|
* Marshal distant past/futureNobuyoshi Nakada2019-06-191-0/+10
| | | | [Feature #15160]
* New buffer for shared stringNobuyoshi Nakada2019-06-191-0/+5
| | | | | * string.c (rb_str_init): allocate new buffer if the string is shared. [Bug #15937]
* Preserve the string content at self-copyingNobuyoshi Nakada2019-06-191-0/+9
| | | | | * string.c (rb_str_init): preserve the embedded content when self-copying with a capacity. [Bug #15937]
* String#b: Don't depend on dependent stringAlan Wu2019-06-181-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | Registering a string that depend on a dependent string as fstring can lead to use-after-free. See c06ddfe and 3f95620 for details. The following script triggers use-after-free on trunk, 2.4.6, 2.5.5 and 2.6.3. Credits to @wanabe for using eval as a cross-version way of registering a fstring. ```ruby a = ('j' * 24).b.b eval('', binding, a) p a 4.times { GC.start } p a ``` - string.c (str_replace_shared_without_enc): when given a dependent string, depend on the root of the dependent string. [Bug #15934]
* Fix wrong "void value expression" errorNobuyoshi Nakada2019-06-171-0/+2
| | | | | | * parse.y (value_expr_check): `then` or `else` only `if` is not a void value expression, as the counterpart is evaluated as `nil`. [Bug #15932]
* Fix wrong "void value expression" errorNobuyoshi Nakada2019-06-171-0/+6
| | | | | | * parse.y (value_expr_check): if either of `then` or `else` statements is not a void value expression, the whole `if` is not also a void value expression. [Bug #15932]
* Revert "Make constant assignments more conforming to JIS X 3017:2013 11.4.2.2.3"Yusuke Endoh2019-06-161-8/+0
| | | | | | | This reverts commit 44caca11cfa6bea01a1ef738846183f1a56d5658. The change caused a build failure. http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/2102153
* Make constant assignments more conforming to JIS X 3017:2013 11.4.2.2.3Yuki Yugui Sonoda2019-06-161-0/+8
| | | | | compile.c (NODE_CDECL): Evaluate the module before the value test/ruby/test_const.rb (test_evaluation_order): added a test case
* Revert github/pull/2230, commit missNobuyoshi Nakada2019-06-151-39/+0
|
* Test for blank lines between leadinig dot method chainsJosh Cheek2019-06-151-0/+32
|
* Multiline method chain with leading dot works for blank linesJosh Cheek2019-06-151-2/+2
|
* Test comments between multiline method chainJosh Cheek2019-06-151-0/+7
|
* test/net/imap/test_imap.rb: wait for the server thread to startYusuke Endoh2019-06-151-14/+29
| | | | | | | | | In some slow CI environments, the invocation of a thread seems very slow. This causes a test failure to attempt to connect a server that does not start yet. https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-master/log/20190615T002420Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-master/log/20190611T022407Z.fail.html.gz
* An operator is not allowed just after `|>`Nobuyoshi Nakada2019-06-141-0/+1
| | | | https://twitter.com/yukihiro_matz/status/1139454774640726019
* Use Exception#full_message for tracebackNobuyoshi Nakada2019-06-141-7/+1
|
* 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]