aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* [ruby/reline] Treat home dir correctlyaycabta2020-04-241-2/+1
| | | | https://github.com/ruby/reline/commit/9b1327d2f4
* [ruby/reline] Support XDG_CONFIG_HOMEaycabta2020-04-241-0/+38
| | | | | | | | In the XDG Specification, if ~/.config/readline/inputrc exists, then ~/.inputrc should not be read, but for compatibility with GNU Readline, if ~/.inputrc exists, then it is given priority. https://github.com/ruby/reline/commit/97f1e7db04
* Support XDG_* (#2174)Hiroshi SHIBATA2020-04-239-21/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support XDG_CONFIG_HOME for gemrc. * Support XDG_DATA_HOME for .gem * Added test for XDG_DATA_HOME * Do not reuse environmental variable. * Unify .rdoc path to RDoc.home. * Support XDG_DATA_HOME for .rdoc * Ignore exists? * Extracted config_home path * Use XDG_CONFIG_HOME for default credential path * Fixed inconsistency location. * Fixed the broken tests. * Support XDG_CONFIG_HOME for irbrc * Introduce Gem.cache_home as XDG_CACHE_HOME * Use Gem.cache_home instead of Gem.config_home for the credential file of RubyGems. * Initialized the old configurations * Fixed test failure related the configuration initialization * restore XDG_DATA_HOME * Fixed the broken examples of bundler with XDG_* * Do not modify environmental variable on test file * Use XDG_DATA_HOME insted of XDG_CACHE_HOME for credential file * stub out Gem.data_home * Move dir accessor to defaults.rb file * Use XDG_DATA_HOME for signed gem features * Use XDG_DATA_HOME for spec cache * Do not rely on Gem.user_home * Gem.user_home is always exists. Don't need to use FileUitls.mkdir_p * Bump support version to RubyGems 3.2.0+ * Removed the needless fallback configuration * Fixed the inconsistency methods that are find_config_file and config_file * Use Gem.configuration.credentials_path instead of hard-coded path * gem_path is always provided * Removed the duplicated code of find_home * Also removed the duplicated code of user_home * use Gem::UNTAINT instead of untaint for surpressing the warnings * Use File.directory * Restore XDG_DATA_HOME * Use File.write
* Test for [Bug #16669]Nobuyoshi Nakada2020-04-231-0/+8
|
* Split test_definedNobuyoshi Nakada2020-04-231-2/+16
|
* Made parentheses mandatory in endless method defitionNobuyoshi Nakada2020-04-221-2/+4
| | | | | Even for empty argument list, not to be confusing with a writer method name.
* Disallow R-assign in endless defNobuyoshi Nakada2020-04-221-0/+2
|
* Revert "Allow simple R-assign in endless def"Nobuyoshi Nakada2020-04-221-1/+0
| | | | This reverts commit 67bcac879a2e0ddfb4e7bbd7cb5e5401422de76a.
* test/ruby/test_fiber.rb: Skip the problematic test_stack_size on riscvYusuke Endoh2020-04-221-0/+1
| | | | | | | Since it is impossible to detect stack overflow of C functions robustly, the test is a bit unreasonable. https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian-riscv64/ruby-master/log/20200421T120018Z.fail.html.gz
* eval_error.c: default nil as "reverse" is now false [Feature #8661]Nobuyoshi Nakada2020-04-211-4/+2
|
* test/ruby/test_refinement.rb: extend the timeoutYusuke Endoh2020-04-211-1/+1
| | | | https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian-riscv64/ruby-master/log/20200420T083601Z.fail.html.gz
* Skip JIT tests on riscv64 due to SEGV of cc1Yusuke Endoh2020-04-201-0/+2
|
* Skip TestRequire#test_loading_fifo_fd_leak on AndroidYusuke Endoh2020-04-191-0/+2
| | | | | The test fails due to unknown reason. Need to debug in future, but tentatively skipped.
* The pdb header error is printed at stdoutTakashi Kokubun2020-04-181-2/+2
| | | | https://ci.appveyor.com/project/ruby/ruby/builds/32278754/job/90jmky2jq2k0wjv8
* Environment variable values are not case-insensitiveNobuyoshi Nakada2020-04-181-2/+2
| | | | Only the names are case-sensitive.