[DRE-commits] [SCM] ruby-libxml.git branch, master, updated. debian/2.2.2-1-2-g8114569

Cédric Boutillier cedric.boutillier at gmail.com
Sat Nov 26 00:47:26 UTC 2011


The following commit has been merged in the master branch:
commit efdb19a5482866dec9ee8ef49788294d9b438316
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date:   Sat Nov 26 00:58:09 2011 +0100

    patch: fix call to 'ulimit' built-in command from tests

diff --git a/debian/patches/0100_run_builtin_shell_command_ulimit_in_tests.patch b/debian/patches/0100_run_builtin_shell_command_ulimit_in_tests.patch
new file mode 100644
index 0000000..b76e911
--- /dev/null
+++ b/debian/patches/0100_run_builtin_shell_command_ulimit_in_tests.patch
@@ -0,0 +1,25 @@
+Description: run correctly the built-in command "ulimit"
+ ulimit is a built-in shell command and cannot be simply called from ruby with
+ backticks. Passing the command as a string to sh with the -c switch seems to be
+ the correct way to do this.
+Author: Cédric Boutillier <cedric.boutillier at gmail.com>
+Last-Update:2011-11-26
+
+--- a/test/tc_parser.rb
++++ b/test/tc_parser.rb
+@@ -246,7 +246,7 @@
+     max_fd = if RUBY_PLATFORM.match(/mswin32|mingw/i)
+       500
+     else
+-      (`ulimit -n`.chomp.to_i) + 1
++      (`sh -c "ulimit -n"`.chomp.to_i) + 1
+     end
+ 
+     file = File.join(File.dirname(__FILE__), 'model/rubynet.xml')
+@@ -353,4 +353,4 @@
+     assert_instance_of(XML::Document, doc)
+     assert_instance_of(XML::Parser::Context, parser.context)
+   end
+-end
+\ No newline at end of file
++end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1b5e8f8
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0100_run_builtin_shell_command_ulimit_in_tests.patch
diff --git a/debian/source/local-options b/debian/source/local-options
new file mode 100644
index 0000000..4aceb10
--- /dev/null
+++ b/debian/source/local-options
@@ -0,0 +1 @@
+unapply-patches

-- 
ruby-libxml.git



More information about the Pkg-ruby-extras-commits mailing list