diff options
Diffstat (limited to 'dev-ruby/tilt/files/tilt-1.3.2-thread_id.patch')
-rw-r--r-- | dev-ruby/tilt/files/tilt-1.3.2-thread_id.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-ruby/tilt/files/tilt-1.3.2-thread_id.patch b/dev-ruby/tilt/files/tilt-1.3.2-thread_id.patch new file mode 100644 index 000000000000..0391d75c4808 --- /dev/null +++ b/dev-ruby/tilt/files/tilt-1.3.2-thread_id.patch @@ -0,0 +1,19 @@ +commit a07077f4737754757e99c2d42267f432289ffd13 +Author: Magnus Holm <judofyr@gmail.com> +Date: Fri Jun 24 10:43:55 2011 +0200 + + Fix compilesite test for multiple threads (closes #93) + +diff --git a/test/tilt_compilesite_test.rb b/test/tilt_compilesite_test.rb +index 1ba6433..2944c84 100644 +--- a/test/tilt_compilesite_test.rb ++++ b/test/tilt_compilesite_test.rb +@@ -39,7 +39,7 @@ class CompileSiteTest < Test::Unit::TestCase + locals = { "local#{i}" => 'value' } + res = template.render(self, locals) + thread_id = Thread.current.object_id +- res = template.render(self, "local#{thread_id.to_s}" => 'value') ++ res = template.render(self, "local#{thread_id.abs.to_s}" => 'value') + rescue => boom + main_thread.raise(boom) + end |