File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments