summaryrefslogtreecommitdiff
path: root/tool/lib/core_assertions.rb
Commit message (Collapse)AuthorAgeFilesLines
* core_assertions.rb: Support old rubiesNobuyoshi Nakada2023-04-291-2/+1
| | | | Some symbol argument might not be accepted by Process.clock_gettime.
* core_assertions.rb: Prefer CPU time clocksNobuyoshi Nakada2023-04-061-2/+20
| | | | To prevent influence from other processes.
* core_assertions.rb: Extract common code blockNobuyoshi Nakada2023-04-061-8/+9
|
* core_assertions.rb: Tweak timeout limitNobuyoshi Nakada2023-04-061-4/+4
| | | | Increase the timeout limit when variance at rehearsal is small.
* Skip assert_linear_performance for RJITTakashi Kokubun2023-04-021-2/+5
|
* core_assertions.rb: Raise `Timeout::Error` explicitlyNobuyoshi Nakada2023-03-231-1/+1
| | | | So that `assert_raise` inside the block works.
* core_assertions.rb: Fix backward compatibility with pre 2.7Nobuyoshi Nakada2023-03-221-1/+1
|
* [DOC] Update comment of assert_pattern_listNobuyoshi Nakada2023-03-221-2/+2
| | | | `pattern_list` may contain string since d903e7672637.
* core_assertions.rb: Refine `assert_linear_performance`Nobuyoshi Nakada2023-03-221-1/+1
| | | | | * Calculate each timeout from the ratio of each factor to the first factor.
* core_assertions.rb: Relax `assert_linear_performance`Nobuyoshi Nakada2023-03-181-14/+25
| | | | | | | | * Use an `Enumerable` as factors, instead of three arguments. * Include `assert_operator` time in rehearsal time. * Round up max expected time.
* Revert "core_assertions.rb: Refine `assert_linear_performance`"Takashi Kokubun2023-03-161-16/+11
| | | | | | | This reverts commit cae4342dd559e34c1ce6219593f77f0ad80286da. This is failing a lot of CIs and nobody is actively looking into fixing it. Let me revert this until we have a solution to it.
* core_assertions.rb: Refine `assert_linear_performance`Nobuyoshi Nakada2023-03-161-11/+16
| | | | * Use an `Enumerable` as factors, instead of three arguments.
* core_assertions.rb: Refine `assert_linear_performance`Nobuyoshi Nakada2023-03-151-4/+3
| | | | | * Add `rehearsal` keyword argument * Stop repeating with the same factor
* Add test for linear performanceNobuyoshi Nakada2023-03-121-0/+23
|
* core_assertions.rb: Consider backward compatibilitiesNobuyoshi Nakada2023-03-121-1/+3
| | | | | This file is copied to default gems, which might support older versions.
* s/MJIT/RJIT/Takashi Kokubun2023-03-061-2/+2
|
* Skip Test::Unit::AutoRunner logic in ruby/ruby repositoryHiroshi SHIBATA2023-01-051-2/+5
|
* [ruby/openssl] Stop AutoRunner with test-unitHiroshi SHIBATA2023-01-051-0/+1
| | | | https://github.com/ruby/openssl/commit/0d4cd8b9ca
* Fix test fail with assert_ractor outside of ruby/ruby repoHiroshi SHIBATA2022-09-011-1/+1
| | | | Revert 806583c093ecc2d67830f0a8f0d94decf0ed71e5
* Allow strings in assert_pattern_listNobuyoshi Nakada2022-08-191-4/+6
|
* Prevent accidental use of assert_raisesNobuyoshi Nakada2022-06-251-0/+4
|
* [ruby/date] Use `assert_deprecated_warn`Nobuyoshi Nakada2022-02-251-2/+2
| | | | https://github.com/ruby/date/commit/c55004715a
* [ruby/logger] Fix log rotation inter-process lock failed.Jesse Chavez2022-01-271-1/+1
| | | | | | | | | | | | Issue only occurs in JRuby 9.3.0.0 and Windows and the full console output is: log rotation inter-process lock failed. D:\log.txt -> D:\log.txt.0: The process cannot access the file because it is being used by another process. log writing failed. closed stream log writing failed. closed stream ... https://github.com/ruby/logger/commit/19fc734638
* [ruby/pathname] Officially drop support for ruby 2.6 or olderDavid Rodríguez2022-01-251-1/+1
| | | | | | | | | | | | | | | | | The gem doesn't even install on old rubies, but since the gemspec claims it's supported, `gem install pathname` will try to install it and print an error. This commit doesn't fix the above issue. The only way to fix it would be to restore support and release a new version that actually supports old rubies. However, such a change has been proposed and ignored for a long time. So this issue proposes to leave that broken but at least bring the gemspec manifest and the CI matrix in sync to hopefully avoid this issue from happening again in the future. https://github.com/ruby/pathname/commit/3ee010b538
* Prepare for removing RubyVM::JIT (#5262)Takashi Kokubun2021-12-131-1/+1
|
* Let pretty_inspect work once at firstNobuyoshi Nakada2021-11-301-1/+1
| | | | | For older pp.rb which did not need io/console, and dealing with `LoadError`.
* Load io/console earlierNobuyoshi Nakada2021-11-301-0/+1
| | | | | Something goes wrong at loading libraries inside `mu_pp` in the test overriding `Class.inherited`.
* [ruby/digest] jruby supportPavel Rosický2021-10-121-0/+1
| | | | https://github.com/ruby/digest/commit/2e9dc14693
* Refactor `Test::Unit::CoreAssertions#assert_nothing_raised`Nobuyoshi Nakada2021-10-091-20/+8
| | | | | | * Separate exception classes to be rescued or reraised * Use the filtered backtrace in the failure message * Raise a new `AssertionFailedError` with the original backtrace
* Unify `Test::Unit::Assertions#message`Nobuyoshi Nakada2021-10-091-21/+10
| | | | Merge `Test::Unit::CoreAssertions#message`.
* Let `Test::Unit::CoreAssertions::AllFailures#for` yield the keyNobuyoshi Nakada2021-10-091-1/+1
| | | | Similar to `Test::Unit::CoreAssertions::AllFailures#foreach`.
* Add unique token to separated runnerNobuyoshi Nakada2021-09-131-8/+12
| | | | Same as Test::Unit::CoreAssertions#assert_no_memory_leak.
* Update the test tool pathNobuyoshi Nakada2021-09-111-4/+4
|
* Change include order for test assertionsHiroshi SHIBATA2021-09-111-1/+1
|
* Added missing Assertions for assert_file_predicateHiroshi SHIBATA2021-09-111-0/+1
|
* Replace Test::Assertion and Test::Skip to Test::Unit::AssertionFailedError ↵Hiroshi SHIBATA2021-09-111-7/+7
| | | | and Test::Unit::PendedError
* Fixed inconsistent require order for assertions and core_assertionsHiroshi SHIBATA2021-09-111-2/+0
|
* Removed MiniTest hack for the default gems repoHiroshi SHIBATA2021-09-111-7/+0
|
* Integrate Minitest to TestHiroshi SHIBATA2021-09-111-7/+7
|
* Replace MiniTest::Unit to Test::Unit::RunnerHiroshi SHIBATA2021-09-111-1/+1
|
* Move MiniTest::Assertions to Test::Unit::AssertionsHiroshi SHIBATA2021-09-111-7/+12
|
* Simplify conditions for CoreAssertion initializationHiroshi SHIBATA2021-09-061-5/+2
|
* Use equivalent `__FILE__`Nobuyoshi Nakada2021-08-051-1/+1
|
* Fix relative paths from core_assertions.rbNobuyoshi Nakada2021-08-041-3/+3
|
* Remove an extraneous escapeNobuyoshi Nakada2021-08-041-1/+1
| | | | Since a3fb97465df3, this string is not inside the here-document.
* Move core_assertions.rb from test/unitNobuyoshi Nakada2021-07-111-0/+774
This file contains extended assertions for ruby core which do not belong to test/unit.