Skip to content

Commit

Permalink
Use omit instead of skip for test-unit
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Sep 11, 2024
1 parent 2b68532 commit 46eb180
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/net/ftp/test_ftp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1834,7 +1834,7 @@ def test_tls_unknown_ca
:port => port,
:ssl => true)
rescue SystemCallError
skip $!
omit $!
end
end
end
Expand All @@ -1848,7 +1848,7 @@ def test_tls_with_ca_file
:port => port,
:ssl => { :ca_file => CA_FILE })
rescue SystemCallError
skip $!
omit $!
end
end
end
Expand Down Expand Up @@ -2270,7 +2270,7 @@ def test_abort_tls
end

def test_getbinaryfile_command_injection
skip "| is not allowed in filename on Windows" if windows?
omit "| is not allowed in filename on Windows" if windows?
[false, true].each do |resume|
commands = []
binary_data = (0..0xff).map {|i| i.chr}.join * 4 * 3
Expand Down Expand Up @@ -2323,7 +2323,7 @@ def test_getbinaryfile_command_injection
end

def test_gettextfile_command_injection
skip "| is not allowed in filename on Windows" if windows?
omit "| is not allowed in filename on Windows" if windows?
commands = []
text_data = <<EOF.gsub(/\n/, "\r\n")
foo
Expand Down Expand Up @@ -2384,7 +2384,7 @@ def test_gettextfile_command_injection
end

def test_putbinaryfile_command_injection
skip "| is not allowed in filename on Windows" if windows?
omit "| is not allowed in filename on Windows" if windows?
commands = []
binary_data = (0..0xff).map {|i| i.chr}.join * 4 * 3
received_data = nil
Expand Down Expand Up @@ -2432,7 +2432,7 @@ def test_putbinaryfile_command_injection
end

def test_puttextfile_command_injection
skip "| is not allowed in filename on Windows" if windows?
omit "| is not allowed in filename on Windows" if windows?
commands = []
received_data = nil
server = create_ftp_server { |sock|
Expand Down

0 comments on commit 46eb180

Please sign in to comment.