Travis-CI keeps reporting SEGV in ruby 1.9.3p327, so disuse at_exit.

This commit is contained in:
Akinori MUSHA 2013-04-16 02:20:54 +09:00
parent 18dc77af9f
commit 8abf3483e8

View file

@ -805,15 +805,15 @@ module TestHTTPCookieJar
jar = HTTP::CookieJar.new(:store => :mozilla, :filename => ':memory:') jar = HTTP::CookieJar.new(:store => :mozilla, :filename => ':memory:')
add_and_delete(jar) add_and_delete(jar)
db = jar.store.instance_variable_get(:@db) db = jar.store.instance_variable_get(:@db)
break class << db
} alias close_orig close
at_exit { def close
GC.start STDERR.print "[finalizer is called]"
if db.closed? STDERR.flush
puts "finalizer worked" close_orig
else
puts "finalizer did not work"
end end
end
break
} }
end end