diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-07-03 22:11:17 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-07-03 22:11:24 +0900 |
commit | 2d3572a1548943b857362fff690d5194d1e03604 (patch) | |
tree | be201f669d5718a777cbed0d3404e102f94f13fe /test/mkmf/test_libs.rb | |
parent | 71146bd4a32f26b26d76b8847cdb62a8126be491 (diff) | |
download | ruby-2d3572a1548943b857362fff690d5194d1e03604.tar.gz |
Separate toolchain dependent test
Diffstat (limited to 'test/mkmf/test_libs.rb')
-rw-r--r-- | test/mkmf/test_libs.rb | 9 |
1 files changed, 8 insertions, 1 deletions
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) |