summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-01-21 10:55:24 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-01-21 10:55:24 +0000
commitabfdc03bdf2dd4774228a84da16a5b66d8f7b64f (patch)
tree283ccc17744566423ff03f524fa99747141d0d20 /www-servers/thin/files
parentversion bump for TeXLive 2009 (diff)
downloadgentoo-2-abfdc03bdf2dd4774228a84da16a5b66d8f7b64f.tar.gz
gentoo-2-abfdc03bdf2dd4774228a84da16a5b66d8f7b64f.tar.bz2
gentoo-2-abfdc03bdf2dd4774228a84da16a5b66d8f7b64f.zip
Port to fakegem, add a patch to fix partly-broken tests.
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'www-servers/thin/files')
-rw-r--r--www-servers/thin/files/thin-1.2.5-tests.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/www-servers/thin/files/thin-1.2.5-tests.patch b/www-servers/thin/files/thin-1.2.5-tests.patch
new file mode 100644
index 000000000000..ae65539d8aaf
--- /dev/null
+++ b/www-servers/thin/files/thin-1.2.5-tests.patch
@@ -0,0 +1,27 @@
+unchanged:
+--- a/spec/request/processing_spec.rb
++++ b/spec/request/processing_spec.rb
+@@ -44,6 +44,7 @@ describe Request, 'processing' do
+ end
+
+ it "should set body external encoding to ASCII_8BIT" do
++ pending("Ruby 1.9 compatible implementations only") unless StringIO.instance_methods.include? :external_encoding
+ Request.new.body.external_encoding.should == Encoding::ASCII_8BIT
+ end
+ end
+\ No newline at end of file
+only in patch2:
+unchanged:
+--- a/spec/server_spec.rb
++++ b/spec/server_spec.rb
+@@ -12,6 +12,10 @@ describe Server do
+ end
+
+ it "should set lower maximum_connections size when too large" do
++ # root users under Linux will not have a limitation on maximum
++ # connections, so we cannot really run this test under that
++ # condition.
++ pending("only for non-root users") if Process.euid == 0
+ @server.maximum_connections = 100_000
+ @server.config
+ @server.maximum_connections.should < 100_000