From 3e2ca26b83603a88dfd2d30961d09e31e9d7fd47 Mon Sep 17 00:00:00 2001 From: Luis Lavena Date: Sun, 8 Jan 2012 16:57:55 -0300 Subject: [PATCH] Exclude more UNIXSocket tests under Windows --- test/test_cli.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_cli.rb b/test/test_cli.rb index bf965d4c..bf4640f2 100644 --- a/test/test_cli.rb +++ b/test/test_cli.rb @@ -1,3 +1,4 @@ +require "rbconfig" require 'test/unit' require 'puma/cli' require 'tempfile' @@ -27,7 +28,7 @@ class TestCLI < Test::Unit::TestCase assert_equal File.read(@tmp_path).strip.to_i, Process.pid end - unless defined? JRUBY_VERSION + unless defined?(JRUBY_VERSION) || RbConfig::CONFIG["host_os"] =~ /mingw|mswin/ def test_control url = "unix://#{@tmp_path}" @@ -95,7 +96,7 @@ class TestCLI < Test::Unit::TestCase assert m, "'#{url}' is not a URL" end - end + end # JRUBY or Windows def test_state url = "tcp://127.0.0.1:8232"