Nobuyoshi Nakada
f7f8dc5fd4
Unnamed groups are not captured when named groups are used
2020-01-30 11:31:48 +09:00
aycabta
5d124a3b68
[ruby/reline] Support GNOME style Home/End key sequences [Bug #16510 ]
...
https://github.com/ruby/reline/commit/788f0df845
2020-01-29 15:11:59 +09:00
Kazuhiro NISHIYAMA
d142b37bdc
Add more debug print
...
https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris11s-sunc/ruby-master/log/20200129T022510Z.fail.html.gz
2020-01-29 15:00:03 +09:00
Koichi Sasada
7b4b01424f
skip SEGV (BUG) tests if ENV['RUBY_ON_BUG'] is given.
...
This environment variable can show additional message on BUG.
2020-01-29 14:01:00 +09:00
Koichi Sasada
46173eeb64
support multi-run for test/ruby/enc/test_regex_casefold.rb
...
should not mutate test data.
2020-01-29 13:08:40 +09:00
Nobuyoshi Nakada
98f6c74b42
Isolate the PRNG for tmpdir/tempfile
...
To get rid of conflicts affected by `srand`.
2020-01-29 10:14:15 +09:00
Kazuhiro NISHIYAMA
3023696505
Fix a typo [ci skip]
2020-01-29 08:30:39 +09:00
Alan Wu
7d02441f0d
Fix file dependency in make
2020-01-28 16:11:53 -05:00
Benoit Daloze
809f0b8a13
Update to ruby/spec@f8a2d54
2020-01-28 20:47:48 +01:00
Benoit Daloze
ed377cc9aa
Update to ruby/mspec@9bce874
2020-01-28 20:47:46 +01:00
Benoit Daloze
6321a68582
Run specs on Ruby 2.7 too to make sure they keep passing
...
* With keyword argument changes, it's more likely to break only 2.7 and
not other versions.
* A few specs were broken on 2.7.0 recently, this should catch them earlier.
2020-01-28 18:37:42 +01:00
Jeremy Evans
766f8a7a60
Fix some spec breakage on 2.7 related to keyword arguments
...
These specs were probably added in the commit to fully
separate keyword arguments after the release of 2.7.0, but
apparently not tested on 2.7 before hand. The enclosing
ruby_version guard for these specs limits them to 2.7.
2020-01-28 09:26:02 -08:00
Benoit Daloze
fe8573f31a
Run specs against the latest release of 2.4
2020-01-28 18:12:24 +01:00
Benoit Daloze
0ad0e63887
Fix version guard in __dir__ spec
2020-01-28 18:01:59 +01:00
Koichi Sasada
534536c7cc
fix test cleanup.
...
should remove pathname.
2020-01-29 01:27:17 +09:00
Koichi Sasada
650f152d2f
Revert "srand() should not run in tests."
...
This reverts commit 4d132fa130
.
There are discussions about using srand() in tests.
I'll write a ticket about it and continue to discuss.
2020-01-29 00:56:51 +09:00
Koichi Sasada
0cfba9cdd9
Revert "remove debug code."
...
This reverts commit 65768c80be
.
2020-01-29 00:55:11 +09:00
Koichi Sasada
e7571f163b
restore $LOADED_FEATURES.
...
Dir.tmpdir can return same directory because of rand() value,
so we shouldn't rely on different name.
2020-01-29 00:54:05 +09:00
Koichi Sasada
7882c43fc3
refactoring: use Proc and Constant.
2020-01-29 00:54:05 +09:00
git
7342867fc9
* 2020-01-29 [ci skip]
2020-01-29 00:02:33 +09:00
Tanaka Akira
29e31e72fb
ruby_reset_timezone resets leap_second_info.
...
[Bug #15177 ]
2020-01-29 00:01:57 +09:00
Tanaka Akira
338c5b8c1d
Extract a function, ruby_reset_timezone().
...
Initial implementation of ruby_reset_timezone()
assigns ruby_tz_uptodate_p to false.
2020-01-28 23:40:25 +09:00
Nobuyoshi Nakada
fb41246ddb
Stop parsing copyright notices as document [ci skip]
2020-01-28 23:00:13 +09:00
Nobuyoshi Nakada
17715153e5
Revert "Added RDoc files to parse [Bug #16596 ]"
...
This reverts commit 10842daeb5
,
because it has no effect and the rdoc file has been installed to
lib/racc/rdoc directory.
2020-01-28 22:28:45 +09:00
Koichi Sasada
65768c80be
remove debug code.
2020-01-28 18:29:42 +09:00
Koichi Sasada
4d132fa130
srand() should not run in tests.
...
test_rand.rb calls srand() several times, however it change global
rand-sequence (and --seeds doesn't have meaning). This patch makes
such tests run in other processes.
2020-01-28 18:24:05 +09:00
Koichi Sasada
471a969311
use Minitest::Unit.current_repeat_count to skip multi-run.
2020-01-28 18:20:06 +09:00
Koichi Sasada
dd64c34682
support multi-run for test/ruby/test_time.rb
...
ruby/test_time_tz.rb (not sure only this file affects) changes TZ
and it seems to change internal state. This internal state change
fails test_2038 and test_timegm on 2nd time execution.
At this time I have no idea how to fix this issue, so I skips these
tests on 2nd trial.
You can try this failure with the following command without this patch.
$ make test-all TESTS='--repeat-count=2 ruby/require ruby/time ruby/time_tz'
2020-01-28 18:15:14 +09:00
Koichi Sasada
20c1c24014
Minitest::Unit.current_repeat_count
...
This method returns loop counter for multi-run (0 start).
2020-01-28 18:13:58 +09:00
Koichi Sasada
151533e4bc
support multi-run for test/ruby/test_autoload.rb
...
Another test defines Object::A, but it will fail 2nd test.
2020-01-28 17:55:18 +09:00
卜部昌平
83d6487ae5
fix rb_define_global_function to take const VALUE*
...
It was unable for rb_define_global_function to take VALUE(*)(int argc,
const VLAUE *argv, VALUE self) -style function. Test added.
2020-01-28 17:29:57 +09:00
卜部昌平
bbe3420cce
add test for rb_define_global_function
...
was missing.
2020-01-28 17:09:42 +09:00
卜部昌平
16592d6b69
add test for rb_define_method_id
...
was missing.
2020-01-28 17:09:42 +09:00
卜部昌平
3c3eb418f9
improved support for rb_f_notimplement
...
rb_f_notimplement should be accepted for all possible arities.
Test provided for that.
2020-01-28 17:09:42 +09:00
卜部昌平
7cf5d547e4
delete duplicated function overload
...
The `using engine<...snip...>::define;` line already defines this
function. We don't have to repeat.
2020-01-28 17:09:42 +09:00
卜部昌平
03df02e871
fix typo
...
Add missing `*`.
2020-01-28 17:09:42 +09:00
卜部昌平
0a2e0db483
delete RB_METHOD_DEFINITION_DECL_1
...
This macro is no longer useful. Just expand it.
2020-01-28 15:42:57 +09:00
卜部昌平
31fc34c969
delete unreachable branch
...
Case of __cplusplus is handled in cxxanyargs.hpp now. These deleted
codes no longer reachable.
2020-01-28 15:42:57 +09:00
卜部昌平
01825e8bff
template metaprogramming instead of macros
...
C++ (and myself) hates macros. If we could do the same thing in both
preprocessor and template, we shall choose template. This particular
part of the ruby header is one of such situations.
2020-01-28 15:42:57 +09:00
卜部昌平
ab33b3d691
move macros around
...
Would like to edit them in forthcoming commit.
2020-01-28 15:42:57 +09:00
Koichi Sasada
9552262bb2
support multi-run for test/ruby/test_struct.rb
...
Remove Structs to avoid redefinition warnings.
2020-01-28 15:23:52 +09:00
Koichi Sasada
4df0819c5d
support multi-run for test/ruby/test_settracefunc.rb
...
need to remove Constants.
2020-01-28 15:23:51 +09:00
Koichi Sasada
0f03c1433e
support multi-run for test/ruby/test_primitive.rb
...
need to redefine some classes.
2020-01-28 15:23:51 +09:00
Koichi Sasada
9b65bfdc9e
support multi-run for test/ruby/test_refinement.rb
...
Give up to support multi-run:
* test_method_should_use_refinements
* test_instance_method_should_use_refinements
I hope someone can revisit it.
2020-01-28 15:23:51 +09:00
Koichi Sasada
56b0300f24
support multi-run for test/ruby/test_proc.rb
...
Mysterious error:
`remove_method(:foo) if method_defined?(:foo)` raise an exception
`method `foo' not defined in #<Class:#<TestProc:0x000055d12ff154e0>>`
This patch rename the method name foo to foo_arity to solve it.
2020-01-28 15:23:51 +09:00
Koichi Sasada
1bc731cb65
support multi-run for test/ruby/test_module.rb
...
add cleanup code in some tests.
2020-01-28 15:23:51 +09:00
Koichi Sasada
cc2fe6936c
support multi-run for test/ruby/test_method.rb
...
need to restore a method.
2020-01-28 15:23:51 +09:00
Koichi Sasada
ac2b945bc0
support multi-run for test/ruby/test_marshal.rb
...
need to remove Constants.
2020-01-28 15:23:51 +09:00
Koichi Sasada
251930cea0
support multi-run for test/ruby/test_iseq.rb
...
need to remove a Constant.
2020-01-28 15:23:51 +09:00
Koichi Sasada
962c7abb13
support multi-run for test/ruby/test_eval.rb
...
need to remove a Constant.
2020-01-28 15:23:51 +09:00