summaryrefslogtreecommitdiff
path: root/tool/lib
AgeCommit message (Collapse)Author
2019-12-27Add check_warning_flags to leakcheckerKazuhiro NISHIYAMA
2019-12-23Fix typo in commit logs by log-fix notesNobuyoshi Nakada
2019-12-20Fixed misspellingsNobuyoshi Nakada
Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
2019-12-12implement make test-all TESTS=--gc-compact卜部昌平
79eb5e1acac2339c6ec71db723298bdfcd92b233 implemented RUBY_TEST_GC_COMPACT=1 so why not make it also possible via the command line argument.
2019-12-12support gc_compact_checker on parallel test.Koichi Sasada
2019-12-12call GC.compact after each test.Koichi Sasada
RUBY_TEST_GC_COMPACT=1 enables GC.compact checker which calls GC.compact after each test.
2019-12-03tool/lib/test/unit/parallel.rb: fail explicitly when failing to get ioYusuke Endoh
`(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]
2019-12-01[ruby/fileutils] Fix test failure under ruby 2.4David Rodríguez
`Exception#full_message` is only defined on ruby 2.5.0 and above. https://github.com/ruby/fileutils/commit/a8968f41ed
2019-12-01[ruby/fileutils] Fix error printing test failureDavid Rodríguez
`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
2019-11-18Warn on access/modify of $SAFE, and remove effects of modifying $SAFEJeremy Evans
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. Notes: Merged: https://github.com/ruby/ruby/pull/2476
2019-11-12tool/lib/leakchecker.rb: show the code location that allocated leaked fdYusuke Endoh
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.
2019-11-09Add debug printKazuhiro NISHIYAMA
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' ```
2019-10-31Try to run assert_output_unchanged with racc testsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/2635
2019-10-29tool/lib/minitest/unit.rb: add "omit" as an alias to "skip"Yusuke Endoh
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.
2019-10-23Catch syntax error even if fatalNobuyoshi Nakada
2019-10-22make-snapshot: Regexp#match raises on nil nowNobuyoshi Nakada
2019-10-16Revert "alias assert_raise_message for compatibility with test-unit"Nobuyoshi Nakada
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,
2019-10-16alias assert_raise_message for compatibility with test-unitNobuyoshi Nakada
2019-10-03vcs.rb: fix to export git-svn versionNobuyoshi Nakada
* Use the given branch name instead of implicit 'HEAD". * Format like as git-svn when `from` or `to` is SVN revision number.
2019-10-03[ruby/fileutils] improve the compatibility of minitestHiroshi SHIBATA
https://github.com/ruby/fileutils/commit/f16f5a0dd6
2019-10-03use bind_call for test-all --gc-stress卜部昌平
This one allocation of Method object is worth avoiding. We don't want to test UnboundMethod#bind right here. GC need not run.
2019-10-02Enable checkers on parallel test.Koichi Sasada
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
2019-10-01expose assert_raise and assert_join_threadsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/2516
2019-09-30Revert "introduce debug check."Koichi Sasada
This reverts commit c3b84f2de83a27acc638f99743bfa2c44bac621c. Backtrace shows it is before running tests and debug check was nonsense.
2019-09-30introduce debug check.Koichi Sasada
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.
2019-09-30show RUBY_ISEQ_DUMP_DEBUG envval if given.Koichi Sasada
2019-09-27assert_in_out_err should use FailDesc tooNobuyoshi Nakada
2019-09-15Try to fetch commits notes to the source tree automaticallyNobuyoshi Nakada
[Bug #16167]
2019-09-15make-snapshot: no merge commits in ChangeLogNobuyoshi Nakada
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.
2019-09-15make-snapshot: export ChangeLog from srcdirNobuyoshi Nakada
2019-09-14Continue to export even if no notes/commitsNobuyoshi Nakada
Just exporting may not imply exporting ChangeLog which needs notes/commits. [Bug #16167]
2019-09-08Suppress detached head warningNobuyoshi Nakada
2019-09-07Fix error when checking file modified with git-svnNobuyoshi Nakada
2019-09-07Use `git describe --contains` for tagsNobuyoshi Nakada
2019-09-07Added more debug outputs from VCS::GITNobuyoshi Nakada
2019-09-07Separated VCS.define_options for common VCS optionsNobuyoshi Nakada
2019-09-06VCS::GIT no longer accepts remote repositoryNobuyoshi Nakada
2019-09-06Revert "Add a temporal stack dumper for debugging on trunk-mjit"Yusuke Endoh
This reverts commit 433c9c00d96124e3b416d0a20ff795b0ad4273fa. Successfully captured some traces, and 3b60e5e6bc2c84b971bea9c8312eb5d33ada2ff5 seems to fix the issue.
2019-09-05Add a temporal stack dumper for debugging on trunk-mjitYusuke Endoh
This must be definitely removed after we collect the stack traces :-) http://ci.rvm.jp/results/trunk-mjit@silicon-docker/2245710
2019-09-05Separate VCS::DEBUG_OUTNobuyoshi Nakada
2019-09-03--date=iso-local does not work with old gitNobuyoshi Nakada
2019-09-03Use -z option for git-logNobuyoshi Nakada
2019-09-02Extract git commit log as raw format like git-svn for ChangeLogNobuyoshi Nakada
2019-09-01Support packaging different branch/tagNobuyoshi Nakada
2019-09-01Fetch commit notesNobuyoshi Nakada
2019-09-01Support git tagsNobuyoshi Nakada
2019-08-31Remove files/directories for git/github which are committed [ci skip]Nobuyoshi Nakada
2019-08-30Suppress uninitialized instance variable warnings [ci skip]Nobuyoshi Nakada
2019-08-30Support revision in git-svn logNobuyoshi Nakada
2019-08-30Updated comment of VCS#get_revisions [ci skip]Nobuyoshi Nakada