diff options
| author | Satoshi Tagomori <tagomoris@gmail.com> | 2024-07-31 10:15:29 +0900 |
|---|---|---|
| committer | Koichi Sasada <ko1@atdot.net> | 2024-07-31 10:59:51 +0900 |
| commit | 19ec803179eb698e5aa72e1a024d60a4e4ff1a87 (patch) | |
| tree | 72bc2be86cb9f25b2c8c7a8d4b244e28a898a8c1 /test | |
| parent | 7aea269b89bd7024bcacb7fe7d4ddb0be2f215af (diff) | |
Reset the counter for two consecutive runs
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11284
Diffstat (limited to 'test')
| -rw-r--r-- | test/-ext-/test_ensure_and_callcc.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/-ext-/test_ensure_and_callcc.rb b/test/-ext-/test_ensure_and_callcc.rb index 695ca3b646..9303a094ea 100644 --- a/test/-ext-/test_ensure_and_callcc.rb +++ b/test/-ext-/test_ensure_and_callcc.rb @@ -23,6 +23,7 @@ class TestEnsureAndCallcc < Test::Unit::TestCase def test_bug20655_extension_using_rb_ensure need_continuation require '-test-/ensure_and_callcc' + EnsureAndCallcc.reset assert_equal(0, EnsureAndCallcc.ensure_called) EnsureAndCallcc.require_with_ensure(File.join(__dir__, 'required')) assert_equal(1, EnsureAndCallcc.ensure_called, |
