test/tests.rb in oj-3.13.21 vs test/tests.rb in oj-3.13.22
- old
+ new
@@ -20,5 +20,14 @@
require 'test_strict'
require 'test_rails'
require 'test_wab'
require 'test_writer'
require 'test_integer_range'
+
+at_exit do
+ require 'helper'
+ if '3.1.0' <= RUBY_VERSION && !(RbConfig::CONFIG['host_os'] =~ /(mingw|mswin)/)
+ #Oj::debug_odd("teardown before GC.verify_compaction_references")
+ verify_gc_compaction
+ #Oj::debug_odd("teardown after GC.verify_compaction_references")
+ end
+end