summaryrefslogtreecommitdiff
path: root/test/ruby/test_autoload.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_autoload.rb')
-rw-r--r--test/ruby/test_autoload.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_autoload.rb b/test/ruby/test_autoload.rb
index f6183f5ee2..bac6337eb9 100644
--- a/test/ruby/test_autoload.rb
+++ b/test/ruby/test_autoload.rb
@@ -529,6 +529,7 @@ p Foo::Bar
t2 = Thread.new {Bar}
t1.join
+ GC.start # force GC.
t2.join
Object.send(:remove_const, :Foo)