File: test_unix_server_read_client_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 TestUnixServerReadClientWrite < Test::Unit::TestCase
  def setup
    @tmpdir = Dir.mktmpdir('kgio_unix_3')
    tmp = Tempfile.new('kgio_unix_3', @tmpdir)
    @path = tmp.path
    tmp.close!
    @srv = Kgio::UNIXServer.new(@path)
    @wr = Kgio::UNIXSocket.new(@path)
    @rd = @srv.kgio_tryaccept
  end

  include LibReadWriteTest
end