[前][次][番号順一覧][スレッド一覧]

ruby-changes:29839

From: naruse <ko1@a...>
Date: Wed, 10 Jul 2013 17:10:59 +0900 (JST)
Subject: [ruby-changes:29839] naruse:r41891 (trunk): fix shebang test failure introduced at r41873

naruse	2013-07-10 17:10:39 +0900 (Wed, 10 Jul 2013)

  New Revision: 41891

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41891

  Log:
    fix shebang test failure introduced at r41873
    
    On Windows, it doesn't use /usr/bin/env.

  Modified files:
    trunk/test/rubygems/test_gem_commands_pristine_command.rb

Index: test/rubygems/test_gem_commands_pristine_command.rb
===================================================================
--- test/rubygems/test_gem_commands_pristine_command.rb	(revision 41890)
+++ test/rubygems/test_gem_commands_pristine_command.rb	(revision 41891)
@@ -103,7 +103,11 @@ class TestGemCommandsPristineCommand < G https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_pristine_command.rb#L103
 
     assert_path_exists gem_exec
 
-    assert_match '/usr/bin/env', File.read(gem_exec)
+    if win_platform?
+      assert_match /\A#!\s*ruby/, File.read(gem_exec)
+    else
+      assert_match /\A#!\s*\/usr\/bin\/env ruby/, File.read(gem_exec)
+    end
   end
 
   def test_execute_no_extension

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]