aboutsummaryrefslogtreecommitdiffstats
path: root/tool/lib
Commit message (Collapse)AuthorAgeFilesLines
* Pass keyword options in assert_syntax_errorNobuyoshi Nakada2020-12-241-2/+2
|
* [ruby/date] Fix envutil for old RubyKenta Murata2020-12-231-2/+2
| | | | https://github.com/ruby/date/commit/57e25c406a
* [ruby/date] Workaround for non-ruby repository like ruby/date, flori/jsonHiroshi SHIBATA2020-12-231-2/+2
| | | | https://github.com/ruby/date/commit/1ff7fa2d80
* Guard < Ruby 3.0 for the repositories of default gems.Hiroshi SHIBATA2020-12-231-1/+1
|
* Add `require_relative` option to `assert_ractor`Marc-Andre Lafortune2020-12-201-1/+6
|
* `assert_ractor` tweak. Thanks NobuMarc-Andre Lafortune2020-12-191-5/+4
|
* Add `assert_ractor` [Feature #17367]Marc-Andre Lafortune2020-12-191-0/+17
|
* Use category: :deprecated in warnings that are related to deprecationJeremy Evans2020-12-181-0/+7
| | | | | | | | | | | | | | | | | Also document that both :deprecated and :experimental are supported :category option values. The locations where warnings were marked as deprecation warnings was previously reviewed by shyouhei. Comment a couple locations where deprecation warnings should probably be used but are not currently used because deprecation warning enablement has not occurred at the time they are called (RUBY_FREE_MIN, RUBY_HEAP_MIN_SLOTS, -K). Add assert_deprecated_warn to test assertions. Use this to simplify some tests, and fix failing tests after marking some warnings with deprecated category.
* test/ruby: Check warning messages at a finer granularityNobuyoshi Nakada2020-12-171-0/+7
| | | | | Instead of suppressing all warnings wholly in each test scripts by setting `$VERBOSE` to `nil` in `setup` methods.
* Debug the command used for gdb dumpTakashi Kokubun2020-12-131-1/+3
| | | | | | It's not working http://ci.rvm.jp/results/trunk-mjit@phosphorus-docker/3288206. I'm debugging why.
* Dump a backtrace with gdbTakashi Kokubun2020-12-121-0/+1
| | | | Because Ruby often fails to dump a C backtrace.
* Removed needless gemspec of webrickHiroshi SHIBATA2020-12-111-76/+0
|
* Bump webrick-1.7.0 for version management with ruby/webrick.Hiroshi SHIBATA2020-12-111-1/+1
|
* Move webrick library into internal test toolchainHiroshi SHIBATA2020-12-1037-0/+7196
|
* Avoid leaving too many core files in /tmpTakashi Kokubun2020-12-031-1/+7
| | | | for CIs like ci.rvm.jp.
* Do not require time and fileutils by defaultTakashi Kokubun2020-12-031-2/+2
| | | | | | I have no idea what I'm doing, but the previous commit caused lots of CI failures like https://github.com/ruby/ruby/runs/1496949568 and this place is the most suspicious.
* Save a core file on a worker crashTakashi Kokubun2020-12-031-0/+7
| | | | | | | | | | CI failures like http://ci.rvm.jp/results/trunk-mjit@phosphorus-docker/3280458 doesn't provide any useful information, and it doesn't leave a core file in a CI environment because a test like `Process.kill(:TRAP, $$)` overwrites in a next run very quickly. Thus I'd like to keep core files in /tmp.
* Revert "Report a full_message on a worker crash"Takashi Kokubun2020-12-031-1/+1
| | | | | This reverts commit 00f046ef57f9da7f5248f9ef9d55702ddc407bf1. It was not helpful for an issue I was debugging.
* tune parallel testKoichi Sasada2020-12-013-1/+40
| | | | | | | | | | | | | | | This patch contains the fowllowing hacks: (1) Add "--timetable-data=FILE" option for test-all This option enables to dump timeline event contains worker, suite, and start/end time. (2) remove TestJIT in test_jit_debug.rb on parallel test. it is duplicated test. (3) move test_jit.rb and test_jit_debug.rb at first because these two tests are bottleneck of parallel tests. On my environment, `make test-all TESTS=-j12` reduced the total time 190 seconds -> 140 seconds.
* Report a full_message on a worker crashTakashi Kokubun2020-11-241-1/+1
| | | | | A worker crash happens very often, but we're not sure why. I'd like to know a backtrace if it's available.
* freeze dynamic regexp literalsKoichi Sasada2020-10-271-0/+1
| | | | | Regexp literals are frozen, and also dynamically comppiled Regexp literals (/#{expr}/) are frozen.
* Expose assert, assert_respond_to and assert_not_respond_to for default gems.Hiroshi SHIBATA2020-10-082-72/+72
|
* Pass ASAN options to child environmentsAaron Patterson2020-09-281-0/+1
| | | | | | I want to work with ASAN, but some child environments are not inheriting the ASAN options I'm using. This commit passes them to child environments if specified
* Disable deprecation warning by the default [Feature #16345]Nobuyoshi Nakada2020-09-251-1/+3
| | | | And `-w` option turns it on.
* Added just working Test::Unit::CoreAssertions#diffNobuyoshi Nakada2020-09-141-0/+16
| | | | | This is not "diff", but show expected and actual results both, just to get rid of `NoMethodError` when an assertion failed.
* Revert the related commits about `Tempfile.open` change.Hiroshi SHIBATA2020-09-091-0/+8
| | | | | Start with https://github.com/ruby/ruby/commit/fa21985a7a2f8f52a8bd82bd12a724e9dca74934 to https://github.com/ruby/ruby/commit/d7492a0be885ea9f2b9f71e3e95582f9a859c439
* Simplify Tempfile.open calls with a block as they now unlink the file ↵Benoit Daloze2020-08-291-8/+0
| | | | automatically
* Add default color for each instanceNobuyoshi Nakada2020-08-111-4/+8
|
* Use https instead of httpKazuhiro NISHIYAMA2020-07-281-1/+1
|
* Remove `EnvUtil.rubyexec`, because it is not used anywhere.Vít Ondruch2020-07-281-5/+0
|
* Check warning flags only if available to run with old versionsNobuyoshi Nakada2020-07-151-1/+1
|
* Show messages around the line when replacing failed in format_changelogKazuhiro NISHIYAMA2020-07-101-1/+13
|
* Expose `assert_pattern_list` for drb test with test-unit gem.Hiroshi SHIBATA2020-07-022-43/+43
|
* Prefer String#each_byte when using a blockNobuyoshi Nakada2020-06-151-1/+1
|
* tool/lib/minitest/unit.rb: Reproducible shuffle of test suitesYusuke Endoh2020-06-151-1/+12
| | | | | | | | | | | ... based on CRC32 of names of the test suites. Formerly, `make test-all` randomized the order of the test suites by using `Array#shuffle`. It also shows `--seed N` to reproduce the order, but it was not reproducible when a suite set is different. This change sorts the suites by CRC32 hash of the suite names with a salt generated by the seed.
* Fixed up 56ca006784dNobuyoshi Nakada2020-06-031-6/+13
| | | | | Run lldb just before sending ABRT or KILL signal. Some tests terminate child processes by TERM signal intentionally.
* run lldb to investigate the stuck process.Koichi Sasada2020-06-021-2/+10
| | | | | | | Before sending signals (ABRT, KILL), use lldb to show the backtrace of a stuck process. This commit also reverts recent changes for terminate().
* add more 2 sec.Koichi Sasada2020-06-011-1/+1
| | | | | | After sending SEGV signal, but no response. Try to add 2 more seconds. If we can not have a detailed log, we need to use gdb/lldb to show the backtrace.
* send SEGV to show backtrace.Koichi Sasada2020-06-011-1/+1
| | | | | send SEGV to terminate the remaining process before sending ABRT and KILL to show the backtrace.
* Remove Ruby <2.2 support from tool/lib/vcs.rbJeremy Evans2020-05-281-93/+27
| | | | | BASERUBY now requires at least Ruby 2.2, so there is no point trying to support older ruby versions here.
* test/drb/test_drbssl.rb: skip LeakChecker as openssl keeps /dev/randomYusuke Endoh2020-05-271-1/+7
| | | | | | | | | | | | | | | | and /dev/urandom intentionally. OpenSSL::PKey::RSA.new opens the two random generators and keeps the file descriptors. https://github.com/openssl/openssl/blob/93f99b681ab5a1cf7062053323e09b0cad5ff854/crypto/rand/rand_unix.c#L674 They are detected by the LeakChecker as fd leak, but it is intentional. http://rubyci.s3.amazonaws.com/graviton2/ruby-master/log/20200526T160005Z.log.html.gz ``` [ 597/20199] DRbTests::TestDRbSSLAry#test_01 = 0.29 s Leaked file descriptor: DRbTests::TestDRbSSLAry#test_01: 8 #<File::Stat dev=0x6, ino=11, mode=020666, nlink=1, uid=0, gid=0, rdev=0x109, size=0, blksize=4096, blocks=0, atime=2020-05-23 14:45:13.751999995 +0000, mtime=2020-05-23 14:45:13.751999995 +0000, ctime=2020-05-23 14:45:13.751999995 +0000> Leaked file descriptor: DRbTests::TestDRbSSLAry#test_01: 9 #<File::Stat dev=0x6, ino=10, mode=020666, nlink=1, uid=0, gid=0, rdev=0x108, size=0, blksize=4096, blocks=0, atime=2020-05-23 14:45:13.755999995 +0000, mtime=2020-05-23 14:45:13.755999995 +0000, ctime=2020-05-23 14:45:13.755999995 +0000> ```
* Added --test-order=nosort optionNobuyoshi Nakada2020-05-172-3/+8
| | | | Run tests in the order given in the command line.
* leakchecker.rb: show test nameNobuyoshi Nakada2020-05-161-1/+1
| | | | When multiple autoclose IO objects are leaked too.
* Workaround for Minitest5Hiroshi SHIBATA2020-05-081-0/+2
|
* Check encodings of STDIN,STDOUT,STDERR tooKazuhiro NISHIYAMA2020-05-081-12/+19
|
* leakchecker.rb: try `lsof`Nobuyoshi Nakada2020-05-071-2/+9
|
* Makes nil-safeNobuyoshi Nakada2020-05-061-1/+1
|
* Ignore FDs kept by system libraryNobuyoshi Nakada2020-05-061-0/+13
| | | | | `getaddrinfo` on macOS seems keeping FDs to query host names internally.
* leakchecker.rb: search /dev/fd tooNobuyoshi Nakada2020-05-061-12/+12
| | | | It is more popular than /proc/self/fd.
* envutil.rb: Also alias to #nameNobuyoshi Nakada2020-05-051-2/+10
|