diff options
author | Dirkjan Bussink <d.bussink@gmail.com> | 2013-01-06 16:47:12 +0100 |
---|---|---|
committer | Dirkjan Bussink <d.bussink@gmail.com> | 2013-01-06 16:47:12 +0100 |
commit | 53278a9c4401d806c4c49baa7b501f5f691665c2 (patch) | |
tree | 94f94e947b58bc14ee7f65a92eb8464819422489 /spec/ffi/pointer_spec.rb | |
parent | 42e061a969b94ef421e444446be2430cca6a711e (diff) | |
download | ffi-53278a9c4401d806c4c49baa7b501f5f691665c2.tar.gz |
Use Rubinius API on Rubinius for forcing GC
Diffstat (limited to 'spec/ffi/pointer_spec.rb')
-rw-r--r-- | spec/ffi/pointer_spec.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/ffi/pointer_spec.rb b/spec/ffi/pointer_spec.rb index c5c4d3c..f17a1e9 100644 --- a/spec/ffi/pointer_spec.rb +++ b/spec/ffi/pointer_spec.rb @@ -118,11 +118,7 @@ describe "AutoPointer" do loop = 5 while @@count < count && loop > 0 loop -= 1 - if RUBY_PLATFORM =~ /java/ - java.lang.System.gc - else - GC.start - end + TestLibrary.force_gc sleep 0.05 unless @@count == count end @@count = 0 |