Sha256: b8d6a6a32eabc0a6037d16ea9f61c7b3d97948d436172e7c037614c1d9dbf359

Contents?: true

Size: 207 Bytes

Versions: 10

Compression:

Stored size: 207 Bytes

Contents

require '../filemagic'

# watch -n 1 'ps aux | grep leaktest'

def do_file(filename)
  fm = FileMagic.new(0)
  file = fm.file(filename)
  fm.close
  return file
end

loop do
  puts do_file($0)
  sleep 1
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
glongman-ffiruby-filemagic-0.3.3 test/leaktest.rb
glongman-ffiruby-filemagic-0.3.4 test/leaktest.rb
glongman-ffiruby-filemagic-0.4.0 test/leaktest.rb
glongman-ffiruby-filemagic-0.4.2 test/leaktest.rb
glongman-otv-ffiruby-filemagic-0.1.0 test/leaktest.rb
glongman-otv-ffiruby-filemagic-0.2.0 test/leaktest.rb
glongman-otv-ffiruby-filemagic-0.3.0 test/leaktest.rb
glongman-otv-ffiruby-filemagic-0.3.1 test/leaktest.rb
ricardochimal-ruby-filemagic-0.1.1 test/leaktest.rb
ricardochimal-ruby-filemagic-0.1.2 test/leaktest.rb