~ubuntu-branches/ubuntu/trusty/ruby1.9/trusty

« back to all changes in this revision

Viewing changes to test/socket/test_tcp.rb

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2008-01-24 11:42:29 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080124114229-jw2f87rdxlq6gp11
Tags: 1.9.0.0-2ubuntu1
* Merge from debian unstable, remaining changes:
  - Robustify check for target_os, fixing build failure on lpia.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
 
8
8
class TestTCPSocket < Test::Unit::TestCase
9
 
  def test_recvfrom # [ruby-dev:24705]
10
 
assert false, "TODO: doesn't work on mswin32" if /mswin32/ =~ RUBY_PLATFORM
 
9
  def test_recvfrom
 
10
assert false, "TODO: doesn't work on mswin32/64" if /mswin/ =~ RUBY_PLATFORM
11
11
    c = s = nil
12
12
    svr = TCPServer.new("localhost", 0)
13
13
    th = Thread.new {
20
20
    }
21
21
    addr = svr.addr
22
22
    sock = TCPSocket.open(addr[2], addr[1])
23
 
    assert_raise(RuntimeError, SocketError) {
 
23
    assert_raise(RuntimeError, SocketError, "[ruby-dev:24705]") {
24
24
      sock.recvfrom(0x10000)
25
25
    }
26
26
  ensure