dtas.git  about / heads / tags
duct tape audio suite for *nix
blob 43abb6ca141ba836e4232c545f2e17af25273007 664 bytes (raw)
$ git show v0.8.0:test/test_sink_pipe_size.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 
# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
begin
  require 'io/splice'
  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")
      assert_match %r{\AERR }, s.req("sink ed default pipe_size=")
      s.req_ok("sink ed default pipe_size=4096")
    end if IO.method_defined?(:pipe_size=)
  end
rescue LoadError
end

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