Permalink
Browse files

Add a bug triggering debug code.

  • Loading branch information...
1 parent 22b3bfc commit 3bc937439a9c0559e94c272c988cab8fa90d3c5d @thedarkone committed Oct 3, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 test/test_cache_loops.rb
View
7 test/test_cache_loops.rb
@@ -240,7 +240,12 @@ def run_thread_loop(meth, keys, options)
puts meth
result = (1..options[:thread_count]).map do
Thread.new do
- setup_sync_and_start_loop(meth, cache, keys, barier, options[:loop_count])
+ begin
+ setup_sync_and_start_loop(meth, cache, keys, barier, options[:loop_count])
+ rescue Exception => e
+ puts e.backtrace.join("\n")
+ raise
+ end
end
end.map(&:value).tap{|x| puts(([{:meth => meth, :time => "#{Time.now - t}s", :loop_count => options[:loop_count], :key_count => keys.size}] + x).inspect)}
stopper.set true

0 comments on commit 3bc9374

Please sign in to comment.