Haruka Yoshihara
null+****@clear*****
Thu Dec 13 18:48:22 JST 2012
Haruka Yoshihara 2012-12-13 18:48:22 +0900 (Thu, 13 Dec 2012) New Revision: 283b4af7a9555eb90765a65f8eef1165004dd48f https://github.com/groonga/groonga-query-log/commit/283b4af7a9555eb90765a65f8eef1165004dd48f Log: test: prevent GC from removing a file corresponding Tempfile Object Modified files: test/test-analyzer.rb Modified: test/test-analyzer.rb (+2 -1) =================================================================== --- test/test-analyzer.rb 2012-12-13 18:31:11 +0900 (d0fec82) +++ test/test-analyzer.rb 2012-12-13 18:48:22 +0900 (78a316a) @@ -56,7 +56,8 @@ class AnalyzerTest < Test::Unit::TestCase private def run_analyzer(*arguments) - output = Tempfile.new("output.actual").path + output_file = Tempfile.new("output.actual") + output = output_file.path arguments << "--output" << output @analyzer.run(*arguments) File.read(output) -------------- next part -------------- HTML����������������������������... Descargar