mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
Travis-CI keeps reporting SEGV in ruby 1.9.3p327, so disuse at_exit.
This commit is contained in:
parent
18dc77af9f
commit
8abf3483e8
1 changed files with 8 additions and 8 deletions
|
|
@ -805,15 +805,15 @@ module TestHTTPCookieJar
|
|||
jar = HTTP::CookieJar.new(:store => :mozilla, :filename => ':memory:')
|
||||
add_and_delete(jar)
|
||||
db = jar.store.instance_variable_get(:@db)
|
||||
break
|
||||
}
|
||||
at_exit {
|
||||
GC.start
|
||||
if db.closed?
|
||||
puts "finalizer worked"
|
||||
else
|
||||
puts "finalizer did not work"
|
||||
class << db
|
||||
alias close_orig close
|
||||
def close
|
||||
STDERR.print "[finalizer is called]"
|
||||
STDERR.flush
|
||||
close_orig
|
||||
end
|
||||
end
|
||||
break
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue