diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-23 23:50:48 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-23 23:50:48 +0000 |
commit | 6264225c7ec1b9c4dbd3a64fd8c5875890e0f8b3 (patch) | |
tree | 0bb7dc39c953f3132d7c5698d78542489029cb83 /test/lib/minitest/unit.rb | |
parent | 7bde63fad6f3e75208b27b8f6fbdb90dbb5be8f9 (diff) | |
download | ruby-6264225c7ec1b9c4dbd3a64fd8c5875890e0f8b3.tar.gz |
test/readline/test_readline.rb: fix readline test
for mingw.
test/lib/minitest/unit.rb: Add 'guards' for mingw.
Removed still-unused method `mswin?` from original patch.
[Fix GH-1941]
From: MSP-Greg <MSP-Greg@users.noreply.github.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib/minitest/unit.rb')
-rw-r--r-- | test/lib/minitest/unit.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lib/minitest/unit.rb b/test/lib/minitest/unit.rb index e8c22c60b7..81b9d7deae 100644 --- a/test/lib/minitest/unit.rb +++ b/test/lib/minitest/unit.rb @@ -1171,6 +1171,14 @@ module MiniTest def windows? platform = RUBY_PLATFORM /mswin|mingw/ =~ platform end + + ## + # Is this running on mingw? + + def mingw? platform = RUBY_PLATFORM + /mingw/ =~ platform + end + end ## |