ALT Linux Bugzilla
– Attachment 333 Details for
Bug 3506
REXML bug
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
TestCase
test.rb (text/plain), 625 bytes, created by
Kirill A. Shutemov
on 2004-01-17 15:57:48 MSK
(
hide
)
Description:
TestCase
Filename:
MIME Type:
Creator:
Kirill A. Shutemov
Created:
2004-01-17 15:57:48 MSK
Size:
625 bytes
patch
obsolete
>require 'test/unit' >require 'rexml/parsers/sax2parser' >require 'socket' > >class ErrorTest < Test::Unit::TestCase > > def setup > $port = 12345 > > Thread.new{ > server = TCPServer.new('127.0.0.1', $port) > while (session = server.accept) > session << '<foo>' > Theread.stop > end > } > @socket = TCPSocket.new('127.0.0.1',$port) > end > > def test_error > ok = false > > test = Thread.new{ > parser = REXML::Parsers::SAX2Parser.new @socket > parser.listen( :start_element ) { > ok = true > } > parser.parse > Thread.stop > } > sleep 1 #to be sure that server is running > assert(ok) > end >end
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3506
: 333 |
334