add default kgio_wait_*able methods
[kgio.git] / test / test_unix_client_read_server_write.rb
blob0f8e55bdec12d1a7a2cdcf0c57b5eb8cebfc527c
1 require './test/lib_read_write'
2 require 'tempfile'
4 class TestUnixServerReadClientWrite < Test::Unit::TestCase
5   def setup
6     tmp = Tempfile.new('kgio_unix')
7     @path = tmp.path
8     File.unlink(@path)
9     tmp.close rescue nil
10     @srv = Kgio::UNIXServer.new(@path)
11     @rd = Kgio::UNIXSocket.new(@path)
12     @wr = @srv.kgio_tryaccept
13   end
15   include LibReadWriteTest
16 end