about summary refs log tree commit homepage
path: root/test/unit/test_util.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-03-10 21:26:14 +0000
committerEric Wong <e@80x24.org>2017-03-14 20:08:06 +0000
commitc0975d0c2faf0f9186399b452cc889ff9259eed6 (patch)
tree3eaa01c718a3e43993cb8567aac50bcd31bbfddc /test/unit/test_util.rb
parent4a6a6f88f97e4660597bec4a161eece55b8bba5e (diff)
downloadunicorn-c0975d0c2faf0f9186399b452cc889ff9259eed6.tar.gz
Some versions of test-unit will fail if an unspecified test is
attempted via "-n", so we need to define an empty test.

We cannot use "skip", either, as that seems exclusive to
minitest; and we won't use minitest since it has more
incompatible changes than test-unit over the last 8 years.

The memory leak test is gone since we're more versed in the
Ruby C API nowadays, modern GCs + mallocs may be less
predictable about releasing memory back to the OS.
Diffstat (limited to 'test/unit/test_util.rb')
-rw-r--r--test/unit/test_util.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/test_util.rb b/test/unit/test_util.rb
index 4d17a16..dc6302e 100644
--- a/test/unit/test_util.rb
+++ b/test/unit/test_util.rb
@@ -69,7 +69,7 @@ class TestUtil < Test::Unit::TestCase
       }
     }
     tmp.close!
-  end if STDIN.respond_to?(:external_encoding)
+  end
 
   def test_reopen_logs_renamed_with_internal_encoding
     tmp = Tempfile.new('')
@@ -101,5 +101,5 @@ class TestUtil < Test::Unit::TestCase
       }
     }
     tmp.close!
-  end if STDIN.respond_to?(:external_encoding)
+  end
 end