dtas.git  about / heads / tags
duct tape audio suite for *nix
blob 86a7f2c908adb0e7d5b40dc6012feebd8f4a628e 634 bytes (raw)
name: testtest_sink_pipe_size.rb 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 
# Copyright (C) 2013-2020 all contributors <dtas-all@nongnu.org>
# License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
# frozen_string_literal: true
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
end if RUBY_PLATFORM =~ /linux/i &&
      File.readable?('/proc/sys/fs/pipe-max-size')

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

git clone git://80x24.org/dtas.git
git clone https://80x24.org/dtas.git