Run tests only for emacs 23+.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c75c838e16
commit
071b8d76f0
@ -3,8 +3,10 @@ require 'tempfile'
|
|||||||
|
|
||||||
class TestRubyMode < Test::Unit::TestCase
|
class TestRubyMode < Test::Unit::TestCase
|
||||||
MISCDIR = File.expand_path("../../../misc", __FILE__)
|
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
|
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}
|
IO.popen([*emacs, :err=>[:child, :out]]) {|f| f.read}
|
||||||
rescue
|
rescue
|
||||||
EMACS = nil
|
EMACS = nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user