The ruby script used "File.exists", which is said to be obsoleted in
newer version of Ruby. Replace it with "File.exist".
Backpatch-through: v4.2
end
file = ARGV.shift
-if !(File.exists? file)
+if !(File.exist? file)
STDERR.puts "run-test: file does not exist: #{file}"
exit 1
end
-if !(File.exists? RESULT_DIRECTORY)
+if !(File.exist? RESULT_DIRECTORY)
Dir.mkdir RESULT_DIRECTORY
else
Dir["#{RESULT_DIRECTORY}/*.out"].each do |f|
end
end
-File.unlink DIFF_FILE if File.exists? DIFF_FILE
+File.unlink DIFF_FILE if File.exist? DIFF_FILE
begin
IO.foreach(file) do |testcase|