Skip to content

Commit 649c189

Browse files
committed
[test] disable (meaningless) tests on Windows
1 parent 8be707d commit 649c189

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/jruby/test_load.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def test_symlinked_jar
333333
[ 'jarwithoutextension', 'symlink.jar' ].each do |file|
334334
File.delete("test/jruby/#{file}") rescue nil
335335
end
336-
end
336+
end unless WINDOWS # symlink not supported
337337

338338
def test_load_wrapped
339339
load(File.expand_path('hello_dummy.rb', File.dirname(__FILE__)), true)

test/jruby/test_socket.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def test_udp_socket_bind
193193
# Permission denied - bind(2) for nil port 42
194194
assert_equal 'Permission denied - bind(2) for nil port 42', e.message
195195
else; fail 'not raised'
196-
end
196+
end unless WINDOWS # MRI (on Windows) returns 0
197197

198198
#begin
199199
# UDPSocket.new.bind nil, nil
@@ -208,14 +208,14 @@ def test_udp_socket_bind
208208
rescue Errno::EACCES
209209
# Permission denied - bind(2) for 0 port 42
210210
else; fail 'not raised'
211-
end
211+
end unless WINDOWS # MRI (on Windows) returns 0 (while triggering a Security Alert)
212212

213213
begin
214214
UDPSocket.new.bind "127.0.0.1", 191
215215
rescue Errno::EACCES
216216
# Permission denied - bind(2) for "127.0.0.1" port 191
217217
else; fail 'not raised'
218-
end
218+
end unless WINDOWS # MRI (on Windows) returns 0
219219
end
220220

221221
def test_tcp_socket_errors

0 commit comments

Comments
 (0)