about summary refs log tree commit homepage
path: root/test/test_sink_pipe_size.rb
blob: 1b6db72bcf099eb41d742bf8a5a92488803ddf11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright (C) 2013-2019 all contributors <dtas-all@nongnu.org>
# License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
# frozen_string_literal: true
begin
  require 'sleepy_penguin'
  require './test/player_integration'
  class TestSinkPipeSizeIntegration < Testcase
    include PlayerIntegration

    def test_sink_pipe_size_integration
      s = client_socket
      default_sink_pid(s)
      s.req_ok("sink ed default pipe_size=0x1000")
      s.req_ok("sink ed default pipe_size=0x10000")
      s.req_ok("sink ed default pipe_size=")
      s.req_ok("sink ed default pipe_size=4096")
    end if SleepyPenguin.const_defined?(:F_SETPIPE_SZ)
  end
rescue LoadError
end