aboutsummaryrefslogtreecommitdiffstats
path: root/test/webrick
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-05-23 20:07:36 -0700
committerJeremy Evans <code@jeremyevans.net>2019-06-01 10:50:06 -0700
commit4b9869e7e04cbfb581f6f1b21ae17b310135c5e2 (patch)
tree9baaa7e6e9efa28290e982dc641da13f05b8a6d0 /test/webrick
parent09c09eb0db6c14c532935081c9b79d38fdc81f6b (diff)
downloadruby-4b9869e7e04cbfb581f6f1b21ae17b310135c5e2.tar.gz
Update String#crypt tests to work on OpenBSD
Skip the webrick httpauth tests that use crypt when testing on OpenBSD. Fixes [Bug #11363]
Diffstat (limited to 'test/webrick')
-rw-r--r--test/webrick/test_httpauth.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/webrick/test_httpauth.rb b/test/webrick/test_httpauth.rb
index 0b2ba4b88f..efeab505a1 100644
--- a/test/webrick/test_httpauth.rb
+++ b/test/webrick/test_httpauth.rb
@@ -58,6 +58,9 @@ class TestWEBrickHTTPAuth < Test::Unit::TestCase
end
[nil, :crypt, :bcrypt].each do |hash_algo|
+ # OpenBSD does not support insecure DES-crypt
+ next if /openbsd/ =~ RUBY_PLATFORM && hash_algo != :bcrypt
+
begin
case hash_algo
when :crypt