aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update to ruby/mspec@a514ad7Benoit Daloze2020-02-284-8/+7
|
* * 2020-02-29 [ci skip]git2020-02-291-1/+1
|
* restore server[:DocumentRootOptions] setting.Koichi Sasada2020-02-291-1/+2
| | | | | | | | Surprisingly (at least for me), `server[:DocumentRootOptions]` on Webrick is global information and it affect the result of test_short_filename. Random order test fails because of global information change. I doubt it is bug, but to fix random order test, I restore the value.
* support random order test.Koichi Sasada2020-02-281-79/+67
| | | | | | | | | | | 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.
* Moved not-implemented method tests [Bug #16662]Nobuyoshi Nakada2020-02-282-90/+7
| | | | | Test not-implemented method with the dedicated methods, instead of platform dependent features.
* Refined argument nameNobuyoshi Nakada2020-02-281-3/+3
|
* Omit test_using_quoting_detection_proc_with_multibyte_input temporarily for ↵aycabta2020-02-281-2/+3
| | | | random order test
* setup Other class.Koichi Sasada2020-02-281-0/+6
| | | | Some tests need to setup Other class with OtherSetup proc.
* respect --test-order=randomKoichi Sasada2020-02-283-6/+15
| | | | | Now --test-order=random is simply ignored. This patch respect this option.
* Fix wrong RegExp.Vít Ondruch2020-02-281-1/+1
| | | | | The missing `\` in PR #2922 causes the default gems to be installed from the .gem packages instead from the expanded sources.
* Make Module#include affect the iclasses of the moduleJeremy Evans2020-02-272-0/+71
| | | | | | | | | | | When calling Module#include, if the receiver is a module, walk the subclasses list and include the argument module in each iclass. This does not affect Module#prepend, as fixing that is significantly more involved. Fixes [Bug #9573]
* * 2020-02-28 [ci skip]git2020-02-281-1/+1
|
* Remove support for passing nil to IO#ungetcJeremy Evans2020-02-272-5/+13
| | | | Fixes [Bug #13675]
* Merge racc from upstream repository.Hiroshi SHIBATA2020-02-2716-48/+36
| | | | | * Support Ruby 2.4's frozen string literals. * Remove VCS revisions headers.
* Update docs for Time#at method [ci skip]प्रथमेश Sonpatki2020-02-271-1/+6
| | | Add docs about all possible options for the `in` argument.
* check imemo_typeKoichi Sasada2020-02-271-3/+10
| | | | | check imemo_type to debug http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/2744755
* st.c: remove variables that are no longer usedYusuke Endoh2020-02-271-4/+1
| | | | to suppress a warning "variable 'check' set but not used"
* MiniTest::Unit.options has default :seedKoichi Sasada2020-02-272-2/+1
| | | | | | | | MiniTest::Unit (superclass of Test::Unit::Runner) does not has default seed parameter, but assigned after initializing. However some tests use MiniTest::Unit without setup of seed option and it cases unexpected test failures. To solve this issue, add default seed parameter 42.
* `srand($seed)` at the beginning of each testKoichi Sasada2020-02-272-0/+3
| | | | | | To avoid `srand(0)` effect in the other tests, call `srand($seed)` at the beginning of each test (setup). [Feature #16655]
* Revert "`srand($seed)` at the beginning of each test"Koichi Sasada2020-02-271-3/+0
| | | | | This reverts commit 7c1553e91db07fed4fed3287b50304f1c69a685d. It breaks some tests.
* * 2020-02-27 [ci skip]git2020-02-271-1/+1
|
* `srand($seed)` at the beginning of each testKoichi Sasada2020-02-271-0/+3
| | | | | | To avoid `srand(0)` effect in the other tests, call `srand($seed)` at the beginning of each test (setup). [Feature #16655]
* don't ignore `--seed` optionKoichi Sasada2020-02-271-2/+13
| | | | | | | `--seed N` option is just ignored so respect this option. [Feature #16655] Also making "Run options" display pretty.
* Add missing free on cc_entriesTakashi Kokubun2020-02-261-0/+3
| | | | | Looks like an oversight in b9007b6c548f91e88fd3f2ffa23de740431fa969 and 7ec23593746c8ccabd6c005cc34dde77d564c6c9.
* Eliminate unnecessary mjit_iseq_cc_entries callsTakashi Kokubun2020-02-261-2/+3
| | | | just in case.
* Internalize rb_mjit_unit definition againTakashi Kokubun2020-02-267-37/+42
| | | | Fixed a TODO in b9007b6c548f91e88fd3f2ffa23de740431fa969
* Explain the situation of inner cc_entries [ci skip]Takashi Kokubun2020-02-251-0/+5
| | | | Add a little more details in 7ec23593746c8ccabd6c005cc34dde77d564c6c9
* Note a situation around xmalloc vs free in MJIT [ci skip]Takashi Kokubun2020-02-251-0/+13
| | | | shared by ko1
* Simplified single script caseNobuyoshi Nakada2020-02-261-1/+1
| | | | | Simply use `File.basename` to remove the directory name (and suffix), instead of `gsub` which can replace unintended parts.
* Remove an unused declarationTakashi Kokubun2020-02-251-2/+0
| | | | It was unnecessary in b9007b6c548f91e88fd3f2ffa23de740431fa969
* kill ST_DEBUG [Bug #16521]卜部昌平2020-02-261-153/+0
| | | | | | This compile-time option has been broken for years (at least since commit 4663c224fa6c925ce54af32fd1c1cbac9508f5ec, according to git bisect). Let's delete codes that no longer work.
* kill USE_RGENGC=0卜部昌平2020-02-262-153/+5
| | | | | | This compile-time option has been broken for years (at least since commit 49369ef17316cd5d5819b038f286e1d951972b52, according to git bisect). Let's delete codes that no longer works.
* avoid #if inside of rb_str_new_cstr卜部昌平2020-02-261-2/+3
| | | | | | | | | ISO/IEC 9899:1999 section 6.10.3 paragraph 11 explicitly states that "If there are sequences of preprocessing tokens within the list of arguments that would otherwise act as preprocessing directives, the behavior is undefined." rb_str_new_cstr is in fact a macro. We cannot do this.
* Cache destination dir.Vít Ondruch2020-02-261-1/+2
| | | | | It is not necessary to strip the `destdir` prefix every iteration, when it can be done just once.
* Properly detect mode for binaries.Vít Ondruch2020-02-261-1/+1
| | | | .gemspec files specifies not just `bin`, but also other directories.
* Use class variable `@src_dir` instead of local `path`.Vít Ondruch2020-02-261-3/+2
| | | | | | The local `path` variable does not provide any additional value and was kept around just for clarity for easier review of the `extrac_files` method move.
* Use local `{dir,prog,data}_mode` variables instead of globals.Vít Ondruch2020-02-261-2/+2
| | | | | This just gets the `RbInstall::DirPackage` closer by functionality to `Gem::Package`.
* Use `$script_mode` instead of `$prog_mode` for gem inistallation.Vít Ondruch2020-02-261-1/+1
| | | | | | | | | | | | | | | rbinstall is using `$script_mode` and `$prog_mode`. However, the `$script_mode` fallbacks to `$prog_mode` if not provided. However, RubyGems do not distinguish between `$script_mode` and `$prog_mode`: https://github.com/rubygems/rubygems/blame/92892bbc3adba86a90756c385433835f6761b8da/lib/rubygems/installer.rb#L196 https://github.com/rubygems/rubygems/blame/92892bbc3adba86a90756c385433835f6761b8da/lib/rubygems/installer.rb#L515 https://github.com/rubygems/rubygems/blame/92892bbc3adba86a90756c385433835f6761b8da/lib/rubygems/installer.rb#L543 Comparing the usage of `$script_mode` and `$prog_mode`, it seems that the `$script_mode` should be used where RubyGems expects `$prog_mode`.
* Use `Gem::Package` like object instead of monkey patching.Vít Ondruch2020-02-261-21/+27
| | | | | | | | 1. This is similar to what RubyGems does and it is less magic [[1]]. 2. It avoids deprecated code paths in RubyGems [[2]]. [1]: https://github.com/rubygems/rubygems/blob/92892bbc3adba86a90756c385433835f6761b8da/lib/rubygems/installer.rb#L151 [2]: https://github.com/rubygems/rubygems/blob/92892bbc3adba86a90756c385433835f6761b8da/lib/rubygems/installer.rb#L187
* Fixed for older versionsNobuyoshi Nakada2020-02-261-1/+4
| | | | | Fix up 66d1900423e6fb9774c2fe72dba8c2968b54d7ab, `RubyVM::MJIT` is available since ruby 2.6.
* Document that Array#index and find_index are aliases [ci skip]Chelsea Corvus (Battell)2020-02-251-0/+2
|
* * 2020-02-26 [ci skip]git2020-02-261-1/+1
|
* Increase timeout for CSV test with --jit-waitTakashi Kokubun2020-02-251-1/+2
| | | | | To prevent CI failures like http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2739995
* Share extracted bundled gems with gems for bundlerNobuyoshi Nakada2020-02-252-7/+11
| | | | | | Extract bundled gems under ".bundle/gems" and get rid of duplication which cause constant redefinition warnings at `test-all` after `extract-gems` and `test-bundler`.
* Prefer dedicated assertion methodNobuyoshi Nakada2020-02-251-1/+1
|
* ext/-test-/cxxanyargs: use try_link instead卜部昌平2020-02-251-1/+1
| | | | | We would like to skip this extension library when libstdc++ is missing. To avoid such situation let's use try_link instead of try_compile.
* should be initialize jit_unit->cc_entries.Koichi Sasada2020-02-253-3/+5
| | | | | GC can invoke just after allocation of jit_unit->cc_entries so it should be zero-cleared.
* should count only string.Koichi Sasada2020-02-251-2/+5
| | | | | This code can generate CC objects so we only need to count existing String objects.
* prevent GC from mjit worker.Koichi Sasada2020-02-252-6/+23
| | | | | | | ALLOC_N() can causes GC. Sometimes `mjit_copy_job_handler()` can be called by mjit_worker thread which is not a Ruby thread, so we need to prevent GC in this function. This patch has some issues, but I introduce it to pass the tests.
* * 2020-02-25 [ci skip]git2020-02-251-1/+1
|