aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* skip SEGV (BUG) tests if ENV['RUBY_ON_BUG'] is given.Koichi Sasada2020-01-291-0/+2
| | | | This environment variable can show additional message on BUG.
* support multi-run for test/ruby/enc/test_regex_casefold.rbKoichi Sasada2020-01-291-1/+1
| | | | should not mutate test data.
* Isolate the PRNG for tmpdir/tempfileNobuyoshi Nakada2020-01-291-1/+9
| | | | To get rid of conflicts affected by `srand`.
* Fix a typo [ci skip]Kazuhiro NISHIYAMA2020-01-291-1/+1
|
* Fix file dependency in makeAlan Wu2020-01-281-0/+2
|
* Update to ruby/spec@f8a2d54Benoit Daloze2020-01-2876-224/+2451
|
* Update to ruby/mspec@9bce874Benoit Daloze2020-01-283-1/+11
|
* Run specs on Ruby 2.7 too to make sure they keep passingBenoit Daloze2020-01-281-2/+15
| | | | | | * 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.
* Fix some spec breakage on 2.7 related to keyword argumentsJeremy Evans2020-01-281-11/+21
| | | | | | | 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.
* Run specs against the latest release of 2.4Benoit Daloze2020-01-282-2/+2
|
* Fix version guard in __dir__ specBenoit Daloze2020-01-281-2/+2
|
* fix test cleanup.Koichi Sasada2020-01-291-2/+4
| | | | should remove pathname.
* Revert "srand() should not run in tests."Koichi Sasada2020-01-291-46/+24
| | | | | | | This reverts commit 4d132fa130e16eeb4af4177cfaccc00e05e2f864. There are discussions about using srand() in tests. I'll write a ticket about it and continue to discuss.
* Revert "remove debug code."Koichi Sasada2020-01-291-0/+3
| | | | This reverts commit 65768c80beb64a14c3e918f8ed5e41e9349025d0.
* restore $LOADED_FEATURES.Koichi Sasada2020-01-291-0/+5
| | | | | Dir.tmpdir can return same directory because of rand() value, so we shouldn't rely on different name.
* refactoring: use Proc and Constant.Koichi Sasada2020-01-292-12/+5
|
* * 2020-01-29 [ci skip]git2020-01-291-1/+1
|
* ruby_reset_timezone resets leap_second_info.Tanaka Akira2020-01-292-7/+5
| | | | [Bug #15177]
* Extract a function, ruby_reset_timezone().Tanaka Akira2020-01-283-3/+10
| | | | | Initial implementation of ruby_reset_timezone() assigns ruby_tz_uptodate_p to false.
* Stop parsing copyright notices as document [ci skip]Nobuyoshi Nakada2020-01-2812-0/+29
|
* Revert "Added RDoc files to parse [Bug #16596]"Nobuyoshi Nakada2020-01-281-1/+0
| | | | | | This reverts commit 10842daeb571126a090cb10dedf0cda8c2b7f9a8, because it has no effect and the rdoc file has been installed to lib/racc/rdoc directory.
* remove debug code.Koichi Sasada2020-01-281-3/+0
|
* srand() should not run in tests.Koichi Sasada2020-01-281-24/+46
| | | | | | 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.
* use Minitest::Unit.current_repeat_count to skip multi-run.Koichi Sasada2020-01-281-6/+2
|
* support multi-run for test/ruby/test_time.rbKoichi Sasada2020-01-281-0/+7
| | | | | | | | | | | | | 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'
* Minitest::Unit.current_repeat_countKoichi Sasada2020-01-281-4/+8
| | | | This method returns loop counter for multi-run (0 start).
* support multi-run for test/ruby/test_autoload.rbKoichi Sasada2020-01-281-0/+2
| | | | Another test defines Object::A, but it will fail 2nd test.
* fix rb_define_global_function to take const VALUE*卜部昌平2020-01-282-1/+71
| | | | | It was unable for rb_define_global_function to take VALUE(*)(int argc, const VLAUE *argv, VALUE self) -style function. Test added.
* add test for rb_define_global_function卜部昌平2020-01-281-0/+58
| | | | was missing.
* add test for rb_define_method_id卜部昌平2020-01-281-0/+56
| | | | was missing.
* improved support for rb_f_notimplement卜部昌平2020-01-282-2/+48
| | | | | | rb_f_notimplement should be accepted for all possible arities. Test provided for that.
* delete duplicated function overload卜部昌平2020-01-281-2/+0
| | | | | The `using engine<...snip...>::define;` line already defines this function. We don't have to repeat.
* fix typo卜部昌平2020-01-281-4/+4
| | | | Add missing `*`.
* delete RB_METHOD_DEFINITION_DECL_1卜部昌平2020-01-281-50/+33
| | | | This macro is no longer useful. Just expand it.
* delete unreachable branch卜部昌平2020-01-281-70/+2
| | | | | Case of __cplusplus is handled in cxxanyargs.hpp now. These deleted codes no longer reachable.
* template metaprogramming instead of macros卜部昌平2020-01-282-9/+189
| | | | | | 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.
* move macros around卜部昌平2020-01-282-202/+194
| | | | Would like to edit them in forthcoming commit.
* support multi-run for test/ruby/test_struct.rbKoichi Sasada2020-01-281-2/+14
| | | | Remove Structs to avoid redefinition warnings.
* support multi-run for test/ruby/test_settracefunc.rbKoichi Sasada2020-01-281-0/+9
| | | | need to remove Constants.
* support multi-run for test/ruby/test_primitive.rbKoichi Sasada2020-01-281-25/+53
| | | | need to redefine some classes.
* support multi-run for test/ruby/test_refinement.rbKoichi Sasada2020-01-281-0/+8
| | | | | | | | Give up to support multi-run: * test_method_should_use_refinements * test_instance_method_should_use_refinements I hope someone can revisit it.
* support multi-run for test/ruby/test_proc.rbKoichi Sasada2020-01-281-3/+3
| | | | | | | 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.
* support multi-run for test/ruby/test_module.rbKoichi Sasada2020-01-281-2/+35
| | | | add cleanup code in some tests.
* support multi-run for test/ruby/test_method.rbKoichi Sasada2020-01-281-6/+21
| | | | need to restore a method.
* support multi-run for test/ruby/test_marshal.rbKoichi Sasada2020-01-281-2/+14
| | | | need to remove Constants.
* support multi-run for test/ruby/test_iseq.rbKoichi Sasada2020-01-281-0/+5
| | | | need to remove a Constant.
* support multi-run for test/ruby/test_eval.rbKoichi Sasada2020-01-281-0/+4
| | | | need to remove a Constant.
* support multi-run for test/ruby/test_encoding.rbKoichi Sasada2020-01-281-2/+2
| | | | Unique encoding name is required.
* support multi-run for ruby/test_const.rbKoichi Sasada2020-01-281-8/+21
| | | | need to redef Constants.
* support multi-run for ruby/test_basicinstructions.rbKoichi Sasada2020-01-281-1/+4
| | | | cvar should be initialized at first.