diff options
Diffstat (limited to 'tool/lib/gc_compact_checker.rb')
-rw-r--r-- | tool/lib/gc_compact_checker.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tool/lib/gc_compact_checker.rb b/tool/lib/gc_compact_checker.rb new file mode 100644 index 0000000000..a6ef3d3ce8 --- /dev/null +++ b/tool/lib/gc_compact_checker.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module GCCompactChecker + def after_teardown + super + GC.compact + end +end + +Test::Unit::TestCase.include GCCompactChecker if ENV['RUBY_TEST_GC_COMPACT'] |