Nobuyoshi Nakada
07f27383b7
Refined argument name
2020-02-28 20:10:46 +09:00
aycabta
6df8cfb771
Omit test_using_quoting_detection_proc_with_multibyte_input temporarily for random order test
2020-02-28 19:28:11 +09:00
Koichi Sasada
6787ccf238
setup Other class.
...
Some tests need to setup Other class with OtherSetup proc.
2020-02-28 17:58:30 +09:00
Koichi Sasada
28399e4e0f
respect --test-order=random
...
Now --test-order=random is simply ignored. This patch respect
this option.
2020-02-28 17:44:23 +09:00
Vít Ondruch
9bede6e942
Fix wrong RegExp.
...
The missing `\` in PR #2922 causes the default gems to be installed from
the .gem packages instead from the expanded sources.
2020-02-28 14:32:20 +09:00
Jeremy Evans
3556a834a2
Make Module#include affect the iclasses of the module
...
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-27 11:03:13 -08:00
git
1ca3a22117
* 2020-02-28 [ci skip]
2020-02-28 03:18:15 +09:00
Jeremy Evans
54499d7810
Remove support for passing nil to IO#ungetc
...
Fixes [Bug #13675 ]
2020-02-27 10:17:54 -08:00
Hiroshi SHIBATA
229ba1215f
Merge racc from upstream repository.
...
* Support Ruby 2.4's frozen string literals.
* Remove VCS revisions headers.
2020-02-27 13:33:51 +09:00
प्रथमेश Sonpatki
9a422fc010
Update docs for Time#at method [ci skip]
...
Add docs about all possible options for the `in` argument.
2020-02-27 11:08:49 +09:00
Koichi Sasada
18674aef0d
check imemo_type
...
check imemo_type to debug
http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/2744755
2020-02-27 10:50:20 +09:00
Yusuke Endoh
1d81baf3c1
st.c: remove variables that are no longer used
...
to suppress a warning "variable 'check' set but not used"
2020-02-27 09:49:24 +09:00
Koichi Sasada
6b30638bdb
MiniTest::Unit.options has default :seed
...
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.
2020-02-27 04:06:28 +09:00
Koichi Sasada
14f1790807
`srand($seed)` at the beginning of each test
...
To avoid `srand(0)` effect in the other tests, call `srand($seed)`
at the beginning of each test (setup).
[Feature #16655 ]
2020-02-27 03:47:41 +09:00
Koichi Sasada
f9d314245b
Revert "`srand($seed)` at the beginning of each test"
...
This reverts commit 7c1553e91d
.
It breaks some tests.
2020-02-27 02:45:09 +09:00
git
8296da883c
* 2020-02-27 [ci skip]
2020-02-27 02:32:56 +09:00
Koichi Sasada
7c1553e91d
`srand($seed)` at the beginning of each test
...
To avoid `srand(0)` effect in the other tests, call `srand($seed)`
at the beginning of each test (setup).
[Feature #16655 ]
2020-02-27 02:29:57 +09:00
Koichi Sasada
116c632095
don't ignore `--seed` option
...
`--seed N` option is just ignored so respect this option.
[Feature #16655 ]
Also making "Run options" display pretty.
2020-02-27 02:26:14 +09:00
Takashi Kokubun
83705c42ce
Add missing free on cc_entries
...
Looks like an oversight in b9007b6c54
and
7ec2359374
.
2020-02-26 00:37:37 -08:00
Takashi Kokubun
33b78b89ac
Eliminate unnecessary mjit_iseq_cc_entries calls
...
just in case.
2020-02-26 00:34:02 -08:00
Takashi Kokubun
69f377a3d6
Internalize rb_mjit_unit definition again
...
Fixed a TODO in b9007b6c54
2020-02-26 00:27:29 -08:00
Takashi Kokubun
daf7c48d88
Explain the situation of inner cc_entries [ci skip]
...
Add a little more details in 7ec2359374
2020-02-25 23:55:54 -08:00
Takashi Kokubun
55923ba883
Note a situation around xmalloc vs free in MJIT [ci skip]
...
shared by ko1
2020-02-25 23:48:49 -08:00
Nobuyoshi Nakada
8dab71b9d0
Simplified single script case
...
Simply use `File.basename` to remove the directory name (and
suffix), instead of `gsub` which can replace unintended parts.
2020-02-26 16:45:35 +09:00
Takashi Kokubun
eb75f0d134
Remove an unused declaration
...
It was unnecessary in b9007b6c54
2020-02-25 23:24:25 -08:00
卜部昌平
fbd7f08e92
kill ST_DEBUG [Bug #16521 ]
...
This compile-time option has been broken for years (at least since
commit 4663c224fa
, according to git
bisect). Let's delete codes that no longer work.
2020-02-26 16:00:57 +09:00
卜部昌平
62c2b8c74e
kill USE_RGENGC=0
...
This compile-time option has been broken for years (at least since
commit 49369ef173
, according to git
bisect). Let's delete codes that no longer works.
2020-02-26 16:00:10 +09:00
卜部昌平
e7bcb416af
avoid #if inside of rb_str_new_cstr
...
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.
2020-02-26 16:00:10 +09:00
Vít Ondruch
9d6d531527
Cache destination dir.
...
It is not necessary to strip the `destdir` prefix every iteration, when
it can be done just once.
2020-02-26 11:04:52 +09:00
Vít Ondruch
b8a8fdba63
Properly detect mode for binaries.
...
.gemspec files specifies not just `bin`, but also other directories.
2020-02-26 11:04:52 +09:00
Vít Ondruch
e087b029e5
Use class variable `@src_dir` instead of local `path`.
...
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.
2020-02-26 11:04:52 +09:00
Vít Ondruch
c9fab1ac06
Use local `{dir,prog,data}_mode` variables instead of globals.
...
This just gets the `RbInstall::DirPackage` closer by functionality to
`Gem::Package`.
2020-02-26 11:04:52 +09:00
Vít Ondruch
6609940a5e
Use `$script_mode` instead of `$prog_mode` for gem inistallation.
...
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`:
92892bbc3a/lib/rubygems/installer.rb (L196)
92892bbc3a/lib/rubygems/installer.rb (L515)
92892bbc3a/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`.
2020-02-26 11:04:52 +09:00
Vít Ondruch
e960ef6f18
Use `Gem::Package` like object instead of monkey patching.
...
1. This is similar to what RubyGems does and it is less magic [[1]].
2. It avoids deprecated code paths in RubyGems [[2]].
[1]: 92892bbc3a/lib/rubygems/installer.rb (L151)
[2]: 92892bbc3a/lib/rubygems/installer.rb (L187)
2020-02-26 11:04:52 +09:00
Nobuyoshi Nakada
0686e4181d
Fixed for older versions
...
Fix up 66d1900423
, `RubyVM::MJIT` is
available since ruby 2.6.
2020-02-26 10:16:32 +09:00
Chelsea Corvus (Battell)
672213ef1c
Document that Array#index and find_index are aliases [ci skip]
2020-02-25 13:43:17 -05:00
git
6c66761c1f
* 2020-02-26 [ci skip]
2020-02-26 02:27:54 +09:00
Takashi Kokubun
66d1900423
Increase timeout for CSV test with --jit-wait
...
To prevent CI failures like
http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2739995
2020-02-25 09:27:24 -08:00
Nobuyoshi Nakada
55bf0ef1aa
Share extracted bundled gems with gems for bundler
...
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`.
2020-02-25 20:40:36 +09:00
Nobuyoshi Nakada
a504535dd4
Prefer dedicated assertion method
2020-02-25 17:47:17 +09:00
卜部昌平
0febd07c69
ext/-test-/cxxanyargs: use try_link instead
...
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.
2020-02-25 13:39:46 +09:00
Koichi Sasada
84d1a99a3f
should be initialize jit_unit->cc_entries.
...
GC can invoke just after allocation of jit_unit->cc_entries so
it should be zero-cleared.
2020-02-25 13:37:52 +09:00
Koichi Sasada
670b7be6c5
should count only string.
...
This code can generate CC objects so we only need to count
existing String objects.
2020-02-25 13:12:53 +09:00
Koichi Sasada
7ec2359374
prevent GC from mjit worker.
...
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 12:57:10 +09:00
git
82d27604ad
* 2020-02-25 [ci skip]
2020-02-25 12:53:56 +09:00
Masataka Pocke Kuwabara
fa1ec60424
Fix wrong documentation for return value of Pathname#fnmatch
2020-02-25 16:53:35 +13:00
Nobuyoshi Nakada
8b6e2685a4
Fixed symbol misused as ID
...
`rb_funcallv_public` and `rb_respond_to` require an `ID`, not a
`Symbol`. [Bug #16649 ]
2020-02-24 15:37:52 +09:00
Nobuyoshi Nakada
f8401732de
Try with and without "v" prefix for numeric tag
2020-02-24 12:40:34 +09:00
Nobuyoshi Nakada
116b9e6a16
Retry checking out the version
...
rss 0.2.9 is tagged without the "v" prefix.
2020-02-24 12:33:16 +09:00
Nobuyoshi Nakada
6f92c62084
Update bundled gems
2020-02-24 12:27:36 +09:00