ruby-changes:20051
From: naruse <ko1@a...>
Date: Wed, 15 Jun 2011 12:29:12 +0900 (JST)
Subject: [ruby-changes:20051] naruse:r32098 (trunk): Run tests only for emacs 23+.
naruse 2011-06-15 12:28:47 +0900 (Wed, 15 Jun 2011) New Revision: 32098 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32098 Log: Run tests only for emacs 23+. Modified files: trunk/test/misc/test_ruby_mode.rb Index: test/misc/test_ruby_mode.rb =================================================================== --- test/misc/test_ruby_mode.rb (revision 32097) +++ test/misc/test_ruby_mode.rb (revision 32098) @@ -3,8 +3,10 @@ class TestRubyMode < Test::Unit::TestCase MISCDIR = File.expand_path("../../../misc", __FILE__) - emacs = %W"#{ENV["EMACS"] || "emacs"} -q --no-site-file --batch --load #{MISCDIR}/ruby-mode.el" + e = ENV["EMACS"] || "emacs" + emacs = %W"#{e} -q --no-site-file --batch --load #{MISCDIR}/ruby-mode.el" begin + raise if IO.popen([e, "--version", :err=>[:child, :out]]) {|f| f.read}[/[0-9]+/].to_i < 23 IO.popen([*emacs, :err=>[:child, :out]]) {|f| f.read} rescue EMACS = nil -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/