File: test_buffer_spec.rb

package info (click to toggle)
ruby-gssapi 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 216 kB
  • sloc: ruby: 770; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 443 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$: << File.dirname(__FILE__) + '/../../lib/'
require 'gssapi'

describe GSSAPI::LibGSSAPI::UnManagedGssBufferDesc, 'Unmanaged Buffer Test' do
  it 'should create a new UnManagedGssBufferDesc and assign to it and test GC' do
    0.upto 100 do |i|
      b = GSSAPI::LibGSSAPI::UnManagedGssBufferDesc.new
      GC.start
      b.value = 'asdf'
    end

    # If we get here without any errors we should be golden
    true.should be_true
  end
end