Hopefuly replaced by ruby-1.9.3.p195-fix-webrick-tests.patch.
This commit is contained in:
parent
a97a9bad50
commit
7e85d9bf7b
@ -1,49 +0,0 @@
|
||||
--- ruby-1.9.3-p327/test/webrick/test_cgi.rb.koji 2012-08-28 00:40:30.000000000 +0900
|
||||
+++ ruby-1.9.3-p327/test/webrick/test_cgi.rb 2012-11-10 16:33:36.000000000 +0900
|
||||
@@ -28,6 +28,15 @@
|
||||
end
|
||||
|
||||
def test_cgi
|
||||
+'''
|
||||
+On koji:
|
||||
+test_cgi(TestWEBrickCGI) [/builddir/build/BUILD/ruby-1.9.3-p327/test/webrick/test_cgi.rb:34]:
|
||||
+....
|
||||
+....
|
||||
+<"/webrick.cgi"> expected but was
|
||||
+<"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\">\n<HTML>\n <HEAD><TITLE>Internal Server Error</TITLE></HEAD>\n <BODY>\n <H1>Internal Server Error</H1>\n Broken pipe\n <HR>\n <ADDRESS>\n WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10) OpenSSL/1.0.1c at\n 127.0.0.1:58617\n </ADDRESS>\n </BODY>\n</HTML>\n">.
|
||||
+'''
|
||||
+ return # Skip on koji
|
||||
start_cgi_server{|server, addr, port, log|
|
||||
http = Net::HTTP.new(addr, port)
|
||||
req = Net::HTTP::Get.new("/webrick.cgi")
|
||||
@@ -84,6 +93,13 @@
|
||||
end
|
||||
|
||||
def test_bad_request
|
||||
+'''
|
||||
+On koji:
|
||||
+test_bad_request(TestWEBrickCGI) [/builddir/build/BUILD/ruby-1.9.3-p327/test/webrick/test_cgi.rb:96]:
|
||||
+....
|
||||
+Expected /\AHTTP\/\d.\d 400 Bad Request/ to match "HTTP/1.1 500 Internal Server Error \r\nContent-Type: text/html; charset=ISO-8859-1\r\nServer: WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10) OpenSSL/1.0.1c\r\nDate: Sat, 10 Nov 2012 07:17:08 GMT\r\nContent-Length: 307\r\nConnection: close\r\n\r\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\">\n<HTML>\n <HEAD><TITLE>Internal Server Error</TITLE></HEAD>\n <BODY>\n <H1>Internal Server Error</H1>\n Broken pipe\n <HR>\n <ADDRESS>\n WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10) OpenSSL/1.0.1c at\n localhost:41188\n </ADDRESS>\n </BODY>\n</HTML>\n".
|
||||
+'''
|
||||
+ return # Skip on koji
|
||||
start_cgi_server{|server, addr, port, log|
|
||||
sock = TCPSocket.new(addr, port)
|
||||
begin
|
||||
--- ruby-1.9.3-p327/test/webrick/test_filehandler.rb.koji 2012-08-28 00:40:30.000000000 +0900
|
||||
+++ ruby-1.9.3-p327/test/webrick/test_filehandler.rb 2012-11-10 16:33:02.000000000 +0900
|
||||
@@ -244,6 +244,14 @@
|
||||
end
|
||||
|
||||
def test_script_disclosure
|
||||
+'''
|
||||
+On koji:
|
||||
+test_script_disclosure(WEBrick::TestFileHandler) [/builddir/build/BUILD/ruby-1.9.3-p327/test/webrick/test_filehandler.rb:265]:
|
||||
+....
|
||||
+<"200"> expected but was
|
||||
+<"500">.
|
||||
+'''
|
||||
+ return # Skip on koji
|
||||
config = {
|
||||
:CGIInterpreter => TestWEBrick::RubyBin,
|
||||
:DocumentRoot => File.dirname(__FILE__),
|
Loading…
Reference in New Issue
Block a user