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

ruby-changes:26839

From: nobu <ko1@a...>
Date: Mon, 21 Jan 2013 13:53:51 +0900 (JST)
Subject: [ruby-changes:26839] nobu:r38891 (trunk): test_have_macro.rb: unused variables

nobu	2013-01-21 13:53:43 +0900 (Mon, 21 Jan 2013)

  New Revision: 38891

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

  Log:
    test_have_macro.rb: unused variables
    
    * test/mkmf/test_have_macro.rb (test_have_macro_header),
      (test_not_have_macro_header): remove unused variables.

  Modified files:
    trunk/test/mkmf/test_have_macro.rb

Index: test/mkmf/test_have_macro.rb
===================================================================
--- test/mkmf/test_have_macro.rb	(revision 38890)
+++ test/mkmf/test_have_macro.rb	(revision 38891)
@@ -14,7 +14,7 @@ class TestMkmf https://github.com/ruby/ruby/blob/trunk/test/mkmf/test_have_macro.rb#L14
         tmp.puts("#undef #{MACRO_NAME}")
         tmp.puts("#define #{MACRO_NAME} 1")
         tmp.close
-        dir, base = File.split(tmp.path)
+        base = File.basename(tmp.path)
         assert_equal(true, have_macro(MACRO_NAME, base, "-I."), MKMFLOG)
       end
     end
@@ -27,7 +27,7 @@ class TestMkmf https://github.com/ruby/ruby/blob/trunk/test/mkmf/test_have_macro.rb#L27
       Tempfile.open(%w"test_mkmf .h", ".") do |tmp|
         tmp.puts("#undef #{MACRO_NAME}")
         tmp.close
-        dir, base = File.split(tmp.path)
+        base = File.basename(tmp.path)
         assert_equal(false, have_macro(MACRO_NAME, base, "-I."), MKMFLOG)
       end
     end

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

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