ruby-changes:15514
From: nobu <ko1@a...>
Date: Tue, 20 Apr 2010 19:21:51 +0900 (JST)
Subject: [ruby-changes:15514] Ruby:r27416 (trunk): * test/ruby/test_system.rb (TestSystem#valid_syntax): return false
nobu 2010-04-20 19:21:42 +0900 (Tue, 20 Apr 2010) New Revision: 27416 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27416 Log: * test/ruby/test_system.rb (TestSystem#valid_syntax): return false on syntax error. Modified files: trunk/test/ruby/test_system.rb Index: test/ruby/test_system.rb =================================================================== --- test/ruby/test_system.rb (revision 27415) +++ test/ruby/test_system.rb (revision 27416) @@ -10,6 +10,8 @@ } code.force_encoding("us-ascii") catch {|tag| eval(code, binding, fname, 0)} + rescue SyntaxError + false end def test_system -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/