1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/socket/test_socket.rb: update not to use 1.8 assignment to

external local variable in the block parameters.  [ruby-dev:32251]

* test/strscan/test_stringscanner.rb: avoid $KCODE, and use
  String#force_encoding().  [ruby-dev:32251]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-11-14 07:03:39 +00:00
parent e81b38e378
commit 326659c0bf
3 changed files with 24 additions and 32 deletions

View file

@ -38,7 +38,8 @@ class TestBasicSocket < Test::Unit::TestCase
s.close
linger
}
inet_stream do |s|
inet_stream do |sock|
s = sock
assert_equal(0, s.setsockopt(Socket::SOL_SOCKET, Socket::SO_LINGER, linger))
assert_raise(IOError) {
@ -51,7 +52,8 @@ class TestBasicSocket < Test::Unit::TestCase
s.close
Socket::SO_LINGER
}
inet_stream do |s|
inet_stream do |sock|
s = sock
assert_raise(IOError) {
s.setsockopt(Socket::SOL_SOCKET, val, linger)
}
@ -65,7 +67,8 @@ class TestBasicSocket < Test::Unit::TestCase
s.close
2
}
inet_stream do |s|
inet_stream do |sock|
s = sock
assert_raise(IOError) {
s.listen(log)
}