aboutsummaryrefslogtreecommitdiffstats
path: root/tool/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in commit logs by log-fix notesNobuyoshi Nakada2019-12-231-2/+22
|
* Fixed misspellingsNobuyoshi Nakada2019-12-201-1/+1
| | | | Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
* implement make test-all TESTS=--gc-compact卜部昌平2019-12-121-2/+17
| | | | | | 79eb5e1acac2339c6ec71db723298bdfcd92b233 implemented RUBY_TEST_GC_COMPACT=1 so why not make it also possible via the command line argument.
* support gc_compact_checker on parallel test.Koichi Sasada2019-12-121-0/+1
|
* call GC.compact after each test.Koichi Sasada2019-12-121-0/+10
| | | | | RUBY_TEST_GC_COMPACT=1 enables GC.compact checker which calls GC.compact after each test.
* tool/lib/test/unit/parallel.rb: fail explicitly when failing to get ioYusuke Endoh2019-12-031-2/+6
| | | | | | | `(ulimit -n 30; make test-tool)` fails with unexplicit message: "undefined method `write' for nil:NilClass" due to lack of stdout. This change makes it explicit. [Bug #5577]
* [ruby/fileutils] Fix test failure under ruby 2.4David Rodríguez2019-12-011-1/+1
| | | | | | `Exception#full_message` is only defined on ruby 2.5.0 and above. https://github.com/ruby/fileutils/commit/a8968f41ed
* [ruby/fileutils] Fix error printing test failureDavid Rodríguez2019-12-011-1/+1
| | | | | | | | | | | | | | | | | | | `exception_details` is not defined anywhere. This commit fixes the following test crash in ruby 2.4 ``` Error: test_assert_output_lines(TestFileUtils): NoMethodError: undefined method `exception_details' for #<TestFileUtils:0x00005556ef699178> ``` And replaces it with an actual test failure: ``` [Test::Unit::CoreAssertions::MiniTest::Assertion] exception expected, not #<NoMethodError: undefined method `full_message' for #<RuntimeError: ok> Did you mean? message>. ``` https://github.com/ruby/fileutils/commit/2f38ba6e82
* Warn on access/modify of $SAFE, and remove effects of modifying $SAFEJeremy Evans2019-11-181-5/+0
| | | | | | | | | | | | | | | | | This removes the security features added by $SAFE = 1, and warns for access or modification of $SAFE from Ruby-level, as well as warning when calling all public C functions related to $SAFE. This modifies some internal functions that took a safe level argument to no longer take the argument. rb_require_safe now warns, rb_require_string has been added as a version that takes a VALUE and does not warn. One public C function that still takes a safe level argument and that this doesn't warn for is rb_eval_cmd. We may want to consider adding an alternative method that does not take a safe level argument, and warn for rb_eval_cmd.
* tool/lib/leakchecker.rb: show the code location that allocated leaked fdYusuke Endoh2019-11-122-16/+29
| | | | | | | by using ObjectSpace.trace_object_allocations. `make test-all LEAK_CHECKER_TRACE_OBJECT_ALLOCATION=true` will print not only leaked fds but also where it was created.
* Add debug printKazuhiro NISHIYAMA2019-11-091-0/+2
| | | | | | | | | | http://ci.rvm.jp/results/trunk-mjit@silicon-docker/2380788 ``` test_all #<Thread:0x000055b6c8e9fca8@/tmp/ruby/v2/src/trunk-mjit/tool/lib/test/unit/parallel.rb:42 run> terminated with exception (report_on_exception is true): <internal:pack>:134:in `pack': no implicit conversion of false into String (TypeError) from /tmp/ruby/v2/src/trunk-mjit/tool/lib/test/unit/parallel.rb:160:in `_report' from /tmp/ruby/v2/src/trunk-mjit/tool/lib/test/unit/parallel.rb:45:in `block in _run_suite' ```
* Try to run assert_output_unchanged with racc testsHiroshi SHIBATA2019-10-311-0/+3
|
* tool/lib/minitest/unit.rb: add "omit" as an alias to "skip"Yusuke Endoh2019-10-291-0/+2
| | | | | | According to rdoc, test-unit provides omit instead of skip. This is a compatibility layer to make it work with both test-unit and tool/lib/minitest.
* Catch syntax error even if fatalNobuyoshi Nakada2019-10-231-0/+2
|
* make-snapshot: Regexp#match raises on nil nowNobuyoshi Nakada2019-10-221-1/+1
|
* Revert "alias assert_raise_message for compatibility with test-unit"Nobuyoshi Nakada2019-10-161-1/+0
| | | | | | | | This reverts commit 43015275b9a7f2833c93ad11ea96ae4cb3b7acd7. `assert_raise_message` in test-unit is different from `assert_raise_with_message`. It checks the exception message only, but not the exception class,
* alias assert_raise_message for compatibility with test-unitNobuyoshi Nakada2019-10-161-0/+1
|
* vcs.rb: fix to export git-svn versionNobuyoshi Nakada2019-10-031-26/+32
| | | | | | * Use the given branch name instead of implicit 'HEAD". * Format like as git-svn when `from` or `to` is SVN revision number.
* [ruby/fileutils] improve the compatibility of minitestHiroshi SHIBATA2019-10-031-1/+2
| | | | https://github.com/ruby/fileutils/commit/f16f5a0dd6
* use bind_call for test-all --gc-stress卜部昌平2019-10-031-1/+1
| | | | | This one allocation of Method object is worth avoiding. We don't want to test UnboundMethod#bind right here. GC need not run.
* Enable checkers on parallel test.Koichi Sasada2019-10-022-1/+10
| | | | | | | | | parallel test (`make test-all TESTS=-j8`) runs tests on specified number of processes. However, some test checkers written in `runner.rb` are not loaded. This fix enable these checkers on parallel tests. See also: https://github.com/ruby/ruby/pull/2508
* expose assert_raise and assert_join_threadsHiroshi SHIBATA2019-10-012-116/+121
|
* Revert "introduce debug check."Koichi Sasada2019-09-301-11/+0
| | | | | | This reverts commit c3b84f2de83a27acc638f99743bfa2c44bac621c. Backtrace shows it is before running tests and debug check was nonsense.
* introduce debug check.Koichi Sasada2019-09-301-0/+11
| | | | | | | | | | There are random failures: > lib/rubygems/core_ext/kernel_require.rb:61:in `require': > wrong number of arguments (given 1, expected 0) (ArgumentError) http://ci.rvm.jp/results/trunk-jemalloc@silicon-docker/2275159 To check this failure, I added a small check code.
* show RUBY_ISEQ_DUMP_DEBUG envval if given.Koichi Sasada2019-09-301-2/+4
|
* assert_in_out_err should use FailDesc tooNobuyoshi Nakada2019-09-271-4/+2
|
* Try to fetch commits notes to the source tree automaticallyNobuyoshi Nakada2019-09-151-4/+3
| | | | [Bug #16167]
* make-snapshot: no merge commits in ChangeLogNobuyoshi Nakada2019-09-151-1/+1
| | | | | | Parents commit hashs in logs of merge commits are abbreviated to necessary length depending on the repositories. Exclude merge commits from ChangeLog to make it stable.
* make-snapshot: export ChangeLog from srcdirNobuyoshi Nakada2019-09-151-3/+0
|
* Continue to export even if no notes/commitsNobuyoshi Nakada2019-09-141-1/+3
| | | | | Just exporting may not imply exporting ChangeLog which needs notes/commits. [Bug #16167]
* Suppress detached head warningNobuyoshi Nakada2019-09-081-1/+1
|
* Fix error when checking file modified with git-svnNobuyoshi Nakada2019-09-071-1/+2
|
* Use `git describe --contains` for tagsNobuyoshi Nakada2019-09-071-1/+1
|
* Added more debug outputs from VCS::GITNobuyoshi Nakada2019-09-071-1/+4
|
* Separated VCS.define_options for common VCS optionsNobuyoshi Nakada2019-09-071-17/+16
|
* VCS::GIT no longer accepts remote repositoryNobuyoshi Nakada2019-09-061-4/+2
|
* Revert "Add a temporal stack dumper for debugging on trunk-mjit"Yusuke Endoh2019-09-061-3/+0
| | | | | | | This reverts commit 433c9c00d96124e3b416d0a20ff795b0ad4273fa. Successfully captured some traces, and 3b60e5e6bc2c84b971bea9c8312eb5d33ada2ff5 seems to fix the issue.
* Add a temporal stack dumper for debugging on trunk-mjitYusuke Endoh2019-09-051-0/+3
| | | | | This must be definitely removed after we collect the stack traces :-) http://ci.rvm.jp/results/trunk-mjit@silicon-docker/2245710
* Separate VCS::DEBUG_OUTNobuyoshi Nakada2019-09-051-6/+10
|
* --date=iso-local does not work with old gitNobuyoshi Nakada2019-09-031-2/+8
|
* Use -z option for git-logNobuyoshi Nakada2019-09-031-3/+1
|
* Extract git commit log as raw format like git-svn for ChangeLogNobuyoshi Nakada2019-09-021-24/+22
|
* Support packaging different branch/tagNobuyoshi Nakada2019-09-011-4/+9
|
* Fetch commit notesNobuyoshi Nakada2019-09-011-0/+1
|
* Support git tagsNobuyoshi Nakada2019-09-011-4/+8
|
* Remove files/directories for git/github which are committed [ci skip]Nobuyoshi Nakada2019-08-311-4/+2
|
* Suppress uninitialized instance variable warnings [ci skip]Nobuyoshi Nakada2019-08-301-4/+2
|
* Support revision in git-svn logNobuyoshi Nakada2019-08-301-6/+29
|
* Updated comment of VCS#get_revisions [ci skip]Nobuyoshi Nakada2019-08-301-2/+5
|
* Ensure the last and changed revisions as IntegersNobuyoshi Nakada2019-08-281-2/+2
|