File: test_unix_client_read_server_write.rb

package info (click to toggle)
ruby-kgio 2.11.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 504 kB
  • sloc: ruby: 2,779; ansic: 2,017; sh: 32; makefile: 5
file content (18 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require './test/lib_read_write'
require 'tempfile'
require 'tmpdir'

class TestUnixClientReadServerWrite < Test::Unit::TestCase
  def setup
    @tmpdir = Dir.mktmpdir('kgio_unix_0')
    tmp = Tempfile.new('kgio_unix_0', @tmpdir)
    @path = tmp.path
    tmp.close!
    @srv = Kgio::UNIXServer.new(@path)
    @rd = Kgio::UNIXSocket.new(@path)
    @wr = @srv.kgio_tryaccept
  end

  include LibReadWriteTest
end