From 2d3572a1548943b857362fff690d5194d1e03604 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada 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(-) (limited to 'test/mkmf/test_libs.rb') diff --git a/test/mkmf/test_libs.rb b/test/mkmf/test_libs.rb index bb65e4de90..9c5e1d29fb 100644 --- a/test/mkmf/test_libs.rb +++ b/test/mkmf/test_libs.rb @@ -5,9 +5,16 @@ class TestMkmf 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.2.3