ruby-changes:66672
From: Nobuyoshi <ko1@a...>
Date: Sat, 3 Jul 2021 22:12:30 +0900 (JST)
Subject: [ruby-changes:66672] 2d3572a154 (master): Separate toolchain dependent test
https://git.ruby-lang.org/ruby.git/commit/?id=2d3572a154 From 2d3572a1548943b857362fff690d5194d1e03604 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 3 Jul 2021 22:11:17 +0900 Subject: Separate toolchain dependent test --- test/mkmf/test_libs.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/mkmf/test_libs.rb b/test/mkmf/test_libs.rb index bb65e4d..9c5e1d2 100644 --- a/test/mkmf/test_libs.rb +++ b/test/mkmf/test_libs.rb @@ -5,9 +5,16 @@ class TestMkmf https://github.com/ruby/ruby/blob/trunk/test/mkmf/test_libs.rb#L5 class TestLibs < TestMkmf def test_split_libs assert_equal(%w[-lfoo -lbar], split_libs("-lfoo -lbar")) - assert_equal(%w[-ObjC -framework\ Ruby], split_libs("-ObjC -framework Ruby"), 'Bug #6987') end + def test_split_libs_macos + assert_equal(%w[-ObjC -framework\ Ruby], split_libs("-ObjC -framework Ruby"), 'Bug #6987') + end if /darwin/ =~ RUBY_PLATFORM + + def test_split_libs_windows + assert_equal(%w[zdll.lib libffi.lib], split_libs("zdll.lib libffi.lib")) + end if /mswin/ =~ RUBY_PLATFORM + def assert_in_order(array, x, y, mesg = nil) mesg = "#{x} must proceed to #{y}#{': ' if mesg}#{mesg}" assert_operator(array.index(x), :<, array.rindex(y), mesg) -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/