summaryrefslogtreecommitdiff
path: root/test/mkmf
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-04 07:03:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-04 07:03:05 +0000
commita5361435077855a582841110a138bccf2fc9a014 (patch)
tree3d9ecda2cefbba32706ef76371ea1d40cbba4c9d /test/mkmf
parent246c66f70242065407fb25161b4d31fc39c1cd32 (diff)
test_have_library.rb: toolchains result
* test/mkmf/test_have_library.rb (create_library): check if toolchains work. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/mkmf')
-rw-r--r--test/mkmf/test_have_library.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/mkmf/test_have_library.rb b/test/mkmf/test_have_library.rb
index 50202f4..bf17b85 100644
--- a/test/mkmf/test_have_library.rb
+++ b/test/mkmf/test_have_library.rb
@@ -15,11 +15,13 @@ class TestMkmf
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