Skip to content

Commit aef10e2

Browse files
committed
Skip test depending on fork if fork is not available
1 parent d1200ed commit aef10e2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/test_syslog.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def syslog_line_regex(ident, message)
117117
end
118118

119119
def test_log
120+
return unless Process.respond_to?(:fork)
120121
IO.pipe {|stderr|
121122
pid = fork {
122123
stderr[0].close

0 commit comments

Comments
 (0)