Sha256: 769d97ab4d010b2058a9a3aa5d4199cdd4778277cbfd77394aceb61076014d0b

Contents?: true

Size: 808 Bytes

Versions: 22

Compression:

Stored size: 808 Bytes

Contents

require File.expand_path(__FILE__).sub(%r(/test/.*), '/test/test_helper.rb')
require File.expand_path(__FILE__).sub(%r(.*/test/), '').sub(/test_(.*)\.rb/,'\1')

require 'scout/exceptions'
require 'scout/cmd'

class TestClass < Test::Unit::TestCase
  def test_concurrent_stream_pipe
    io = CMD.cmd("ls", :pipe => true, :autojoin => true)
    io.read
    io.close 
  end

  def test_concurrent_stream_process_failed
    assert_raise ConcurrentStreamProcessFailed do 
      io = CMD.cmd("grep . NONEXISTINGFILE", :pipe => true, :autojoin => true)
      io.read
      io.close 
    end
  end

  def test_concurrent_stream_process_failed_autojoin
    assert_raise ConcurrentStreamProcessFailed do 
      io = CMD.cmd("grep . NONEXISTINGFILE", :pipe => true, :autojoin => true) 
      io.read
    end
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
scout-essentials-1.6.5 test/scout/test_concurrent_stream.rb
scout-essentials-1.6.4 test/scout/test_concurrent_stream.rb
scout-essentials-1.6.3 test/scout/test_concurrent_stream.rb
scout-essentials-1.6.2 test/scout/test_concurrent_stream.rb
scout-essentials-1.6.1 test/scout/test_concurrent_stream.rb
scout-essentials-1.6.0 test/scout/test_concurrent_stream.rb
scout-essentials-1.3.1 test/scout/test_concurrent_stream.rb
scout-essentials-1.3.0 test/scout/test_concurrent_stream.rb
scout-essentials-1.2.0 test/scout/test_concurrent_stream.rb
scout-essentials-1.1.1 test/scout/test_concurrent_stream.rb
scout-essentials-1.1.0 test/scout/test_concurrent_stream.rb
scout-essentials-1.0.0 test/scout/test_concurrent_stream.rb
scout-gear-9.1.0 test/scout/test_concurrent_stream.rb
scout-gear-9.0.0 test/scout/test_concurrent_stream.rb
scout-gear-8.1.0 test/scout/test_concurrent_stream.rb
scout-gear-8.0.0 test/scout/test_concurrent_stream.rb
scout-gear-7.3.0 test/scout/test_concurrent_stream.rb
scout-gear-7.2.0 test/scout/test_concurrent_stream.rb
scout-gear-7.1.0 test/scout/test_concurrent_stream.rb
scout-gear-6.0.0 test/scout/test_concurrent_stream.rb