aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [rubygems/rubygems] Track removed methods calls and warn during build time.Josef Šimánek2020-05-081-10/+5
| | | | | | move rubyforge_project= to removed methods https://github.com/rubygems/rubygems/commit/223f7fd470
* [rubygems/rubygems] Deprecate rubyforge_project attribute only during build ↵Josef Šimánek2020-05-081-0/+20
| | | | | | time. https://github.com/rubygems/rubygems/commit/c44eb21648
* [rubygems/rubygems] Revert deprecation of deprecate method for now.Josef Šimánek2020-05-081-1/+0
| | | | https://github.com/rubygems/rubygems/commit/965eee1741
* [rubygems/rubygems] Restore and deprecate old deprecate methodbronzdoc2020-05-081-0/+26
| | | | https://github.com/rubygems/rubygems/commit/024267fa60
* [rubygems/rubygems] Rename version horizon deprecation methodsbronzdoc2020-05-082-4/+4
| | | | https://github.com/rubygems/rubygems/commit/6afd914fda
* [rubygems/rubygems] Avoid "ambiguous first argument" warningbronzdoc2020-05-081-1/+1
| | | | https://github.com/rubygems/rubygems/commit/984bb9b815
* [rubygems/rubygems] Modify files to use new version horizon deprecationsbronzdoc2020-05-083-6/+6
| | | | https://github.com/rubygems/rubygems/commit/4fe5bb5bf3
* [rubygems/rubygems] Remove minitest compatibility codeDavid Rodríguez2020-05-081-5/+1
| | | | https://github.com/rubygems/rubygems/commit/24213b97d8
* [rubygems/rubygems] Use newer module Minitest nameDavid Rodríguez2020-05-081-1/+1
| | | | https://github.com/rubygems/rubygems/commit/2890622479
* Fix a typo [ci skip]Kazuhiro NISHIYAMA2020-05-081-1/+1
|
* Fix rb_profile_frame_classpath to handle module singletonsJean Boussier2020-05-071-6/+34
| | | | | | Right now `SomeClass.method` is properly named, but `SomeModule.method` is displayed as `#<Module:0x000055eb5d95adc8>.method` which makes profiling annoying.
* Restore the external and internal encodings of STDIN, STDOUT, and STDERRYusuke Endoh2020-05-081-0/+4
| | | | IRB::ReadlineInputMethod#initialize changes them via IRB.set_encoding.
* test/irb/test_cmd.rb: clear IRB.@CONF on setupYusuke Endoh2020-05-081-0/+1
| | | | | | | | | | | | | | | | | It caches a path to .irbrc file, which has caused random failure: ``` 1) Failure: TestIRB::ExtendCommand#test_irb_info_multiline [/home/mame/work/ruby/test/irb/test_cmd.rb:49]: Expected / Ruby\sversion: .+\n IRB\sversion:\sirb .+\n InputMethod:\sReidlineInputMethod\swith\sReline .+ and .+\n \.irbrc\spath: .+ /x to match "Ruby version: 2.8.0\n" + "IRB version: irb 1.2.3 (2020-02-15)\n" + "InputMethod: ReidlineInputMethod with Reline 0.1.4 and /tmp/test_reline_config_155659/.inputrc\n". ```
* Remove test of ruby-mode.elKazuhiro NISHIYAMA2020-05-071-183/+0
| | | | Because ruby-mode.el already removed at f03e68edb80dca962290d1fb3a6d49dabdbb911e
* Suffixed memory leak tests as "memory_leak"Nobuyoshi Nakada2020-05-073-6/+8
| | | | So that `TEST_EXCLUDES` option in common.mk works.
* Cut down warm-up loops and gain main/warm-up ratioNobuyoshi Nakada2020-05-071-3/+5
|
* Fakes IPSocket.getaddress in the whole methodNobuyoshi Nakada2020-05-061-24/+25
| | | | | To get rid of calling `getaddrinfo`, which may keep FDs internally.
* Fixed leaked fdsNobuyoshi Nakada2020-05-061-3/+7
|
* [ruby/uri] Check if DN existsNobuyoshi Nakada2020-05-051-0/+4
| | | | | | https://bugs.ruby-lang.org/issues/16830 https://github.com/ruby/uri/commit/b4bf8c1217
* Test no .dSYM on macOSTakashi Kokubun2020-05-031-10/+4
| | | | I think 9aa5fe1bf89db8cd215b24d8ddfb668714681b83 helps this issue too.
* Split compile and link for MinGW supportTakashi Kokubun2020-05-031-1/+1
| | | | | | | | MinGW test_jit fails with no error message. Perhaps linker flags should not be passed when compilation is happening. Anyway splitting these stages doesn't matter for performance. So let me just split it to fix the issue. Probably this helps Solaris's issue too.
* Debug Solaris's MJIT failureTakashi Kokubun2020-05-031-1/+1
| | | | | | using -Winvalid-pch https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20200501T170004Z.fail.html.gz
* Skip pdb corruption on Visual Studio 2015 as wellTakashi Kokubun2020-05-032-6/+6
| | | | | | It turned out that the pdb corruption happens on Visual Studio 2015 as well. https://ci.appveyor.com/project/ruby/ruby/builds/32602953/job/3gj43q18wqeiy729
* Skip only .dSYM cleanup on macOSTakashi Kokubun2020-05-032-5/+10
| | | | | | | | | | Fix https://github.com/ruby/ruby/runs/636020145 without skipping too many tests. It seems that .c -> .o with debug flags and .o -> .so without debug flags did not generate .dSYM but now .c -> .so with debug flags seems to generate a .dSYM directory. As --jit-debug should not be used by normal users, let me skip implementing the removal for now.
* Skip Solaris RubyCI TestJIT for nowTakashi Kokubun2020-05-011-1/+1
| | | | | to be investigated later https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20200501T160004Z.fail.html.gz
* Skip MinGW TestJIT* and macOS TestJITDebug failuresTakashi Kokubun2020-05-012-1/+2
| | | | | | caused by 818d6d33368a396d9cd3d1a34a84015a9e76c5c8, for now. I'll take a look at them tomorrow.
* Deduplicate functions in compacted JIT codeTakashi Kokubun2020-05-011-2/+2
| | | | | | | | | | | | | | to improve code locality. Using benchmark-driver/sinatra with 100 methods JIT-ed, [Before] 12149.97 rps 1.3M /tmp/_ruby_mjit_p31171u145.so [After] 12818.83 rps 260K /tmp/_ruby_mjit_p32155u145.so (VM is 13714.89 rps)
* [ruby/matrix] Add Matrix#adjoint [#14]Marc-Andre Lafortune2020-05-011-0/+5
| | | | Patch adapted from Alessandro Minali
* [ruby/matrix] Fix Matrix#orthogonal?Marc-Andre Lafortune2020-05-011-0/+7
|
* [ruby/matrix] Fix Matrix#unitary? [#14]Marc-Andre Lafortune2020-05-011-0/+8
|
* Switch test_unload_units_and_compaction on mswinTakashi Kokubun2020-04-301-4/+8
| | | | because we support JIT compaction on it
* Do not stop the world during JIT compactionTakashi Kokubun2020-04-301-2/+4
| | | | | | | | | | Running C compiler for JIT compaction inside a critical section may lock main thread for a long time when it triggers GC. As I'm planning to increase this duration a bit, I'd like to make sure this doesn't stop the world. For now, I chose to give up unloading units when it's during JIT compaction, assuming other calls may unload them later.
* [ruby/irb] Restore the default encodingsNobuyoshi Nakada2020-04-301-0/+4
| | | | IRB::ReadlineInputMethod#initialize sets via IRB.set_encoding.
* [ruby/irb] Suppress messages switching inspect modeNobuyoshi Nakada2020-04-301-0/+4
|
* [ruby/irb] Relaxed regexp for readlineNobuyoshi Nakada2020-04-301-1/+1
| | | | | Readline::VERSION may not be a single word, e.g EditLine wrapper when linked with editline.
* [ruby/irb] Check existence of rc files in irb_info commandaycabta2020-04-291-0/+50
| | | | https://github.com/ruby/irb/commit/cdbb9dfc9f
* [ruby/irb] Add irb_info commandaycabta2020-04-291-0/+64
| | | | https://github.com/ruby/irb/commit/a6fe58e916
* [ruby/reline] Negative history_size means unlimitedaycabta2020-04-291-0/+10
| | | | | | And unlimited is default. https://github.com/ruby/reline/commit/f5149c3ca6
* [ruby/reline] New items to history are dropped if history_size is zeroaycabta2020-04-291-0/+10
| | | | https://github.com/ruby/reline/commit/9bdbed9cbc
* [ruby/reline] Ignore non-absolute XDG_CONFIG_HOMENobuyoshi Nakada2020-04-291-0/+25
| | | | | | | | | https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html > All paths set in these environment variables must be absolute. > If an implementation encounters a relative path in any of these > variables it should consider the path invalid and ignore it. https://github.com/ruby/reline/commit/45af6eea77
* Removed unnecessary RLIMIT_ASNobuyoshi Nakada2020-04-281-10/+3
| | | | | Even without this limit, these assertions almost certainly cause a NoMemoryError by removing the fix in 72ad8595f20.
* [rubygems/rubygems] Remove commented out codeDavid Rodríguez2020-04-281-4/+0
| | | | https://github.com/rubygems/rubygems/commit/42aa0d7ebc
* [rubygems/rubygems] Make the test suite pass under `umask 077`Yusuke Endoh2020-04-283-9/+19
| | | | | | | | | | Some tests had failed under `umask 077` mode. As far as I investigated, there is no actual bug. All failures were caused by tests that create a wrong-permission file or expect wrong permission. This changeset fixes the tests. https://github.com/rubygems/rubygems/commit/078213e527
* Moved already resolved testNobuyoshi Nakada2020-04-271-0/+16
| | | | Couldn't figure out failed/fixed versions.
* test/ruby/test_fiber.rb (test_stack_size): re-enabled on s390xYusuke Endoh2020-04-271-1/+0
| | | | | | | Revert 9948addda67f4b7a6e3575f1eba9025f998811d2. It is now discussed in https://bugs.ruby-lang.org/issues/16814, and an assert is added with a217d3cedce3f5aa5c27a1ce6c72b65ec37da057. It would be good to give it a try.
* Fix failures of test/rdoc/test_rdoc_ri_paths.rbKazuhiro NISHIYAMA2020-04-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | yield `home_dir` when HOMEDIR is not falsy only. https://github.com/ruby/ruby/blob/d0f41aa2382612022162d033ddb3d9c9cc62099e/lib/rdoc/ri/paths.rb#L43 ``` yield home_dir, :home if home and HOMEDIR ``` https://rubyci.org/logs/rubyci.s3.amazonaws.com/archlinux/ruby-master/log/20200426T033503Z.fail.html.gz ``` 1) Failure: TestRDocRIPaths#test_class_each [/home/chkbuild/build/20200426T033503Z/ruby/test/rdoc/test_rdoc_ri_paths.rb:54]: <nil> expected but was <"/home/naruse/chkbuild/tmp/build/20200426T033503Z/tmp/test_rdoc_ri_paths_1033468/doc/nodoc-1.0/ri">. 2) Failure: TestRDocRIPaths#test_class_raw_path [/home/chkbuild/build/20200426T033503Z/ruby/test/rdoc/test_rdoc_ri_paths.rb:131]: <nil> expected but was <"/home/naruse/chkbuild/tmp/build/20200426T033503Z/tmp/test_rdoc_ri_paths_1033468/doc/rake-10.0.1/ri">. 3) Failure: TestRDocRIPaths#test_class_raw_path_extra_dirs [/home/chkbuild/build/20200426T033503Z/ruby/test/rdoc/test_rdoc_ri_paths.rb:141]: <nil> expected but was <"/home/naruse/chkbuild/tmp/build/20200426T033503Z/tmp/test_rdoc_ri_paths_1033468/doc/rake-10.0.1/ri">. ```
* Fix errors when `RDoc::RI::Paths::HOMEDIR` is nilKazuhiro NISHIYAMA2020-04-261-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-ad7f67/ruby-master/log/20200425T175405Z.fail.html.gz ``` 4) Error: TestRDocServlet#test_asset: NoMethodError: undefined method `replace' for nil:NilClass /home/chkbuild/build/20200425T175405Z/ruby/test/rdoc/test_rdoc_servlet.rb:48:in `setup' 5) Error: TestRDocServlet#test_asset: NoMethodError: undefined method `replace' for nil:NilClass /home/chkbuild/build/20200425T175405Z/ruby/test/rdoc/test_rdoc_servlet.rb:63:in `teardown' ``` ... ``` 74) Error: TestRDocServlet#test_store_for_site: NoMethodError: undefined method `replace' for nil:NilClass /home/chkbuild/build/20200425T175405Z/ruby/test/rdoc/test_rdoc_servlet.rb:48:in `setup' 75) Error: TestRDocServlet#test_store_for_site: NoMethodError: undefined method `replace' for nil:NilClass /home/chkbuild/build/20200425T175405Z/ruby/test/rdoc/test_rdoc_servlet.rb:63:in `teardown' ```
* [ruby/rdoc] HOME is preserved by RDoc::TestCaseNobuyoshi Nakada2020-04-252-2/+2
| | | | https://github.com/ruby/rdoc/commit/6c4801d1f6
* [ruby/rdoc] Should teardown in reverse order of setupNobuyoshi Nakada2020-04-253-4/+6
| | | | https://github.com/ruby/rdoc/commit/00fb4dd2a3
* Remove and Restore the original HOME dir (#3057)Hiroshi SHIBATA2020-04-241-0/+12
|