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

ruby-changes:29718

From: nobu <ko1@a...>
Date: Thu, 4 Jul 2013 16:03:15 +0900 (JST)
Subject: [ruby-changes:29718] nobu:r41770 (trunk): test_have_library.rb: toolchains result

nobu	2013-07-04 16:03:05 +0900 (Thu, 04 Jul 2013)

  New Revision: 41770

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

  Log:
    test_have_library.rb: toolchains result
    
    * test/mkmf/test_have_library.rb (create_library): check if toolchains
      work.

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

Index: test/mkmf/test_have_library.rb
===================================================================
--- test/mkmf/test_have_library.rb	(revision 41769)
+++ test/mkmf/test_have_library.rb	(revision 41770)
@@ -15,11 +15,13 @@ class TestMkmf https://github.com/ruby/ruby/blob/trunk/test/mkmf/test_have_library.rb#L15
         hdr.puts "void #{FUNC_NAME}_fake(void);"
       end
       create_tmpsrc("#include \"#{HEADER_NAME}\"\n""void #{FUNC_NAME}(void) {}")
-      xsystem(cc_command)
-      xsystem("#{CONFIG['AR']} #{config_string('ARFLAGS') || 'cru '}#{lib} #{CONFTEST}.#{$OBJEXT}")
+      assert(xsystem(cc_command), "compile failed: #{cc_command}")
+      command = "#{CONFIG['AR']} #{config_string('ARFLAGS') || 'cru '}#{lib} #{CONFTEST}.#{$OBJEXT}"
+      assert(xsystem(command), "making library failed: #{command}")
       File.unlink("#{CONFTEST}.#{$OBJEXT}")
       config_string('RANLIB') do |ranlib|
-        xsystem("#{ranlib} #{lib}")
+        command = "#{ranlib} #{lib}"
+        assert(xsystem(command), "ranlib failed: #{command}")
       end
     end
 

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

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