diff options
Diffstat (limited to 'test/helper.rb')
-rw-r--r-- | test/helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/helper.rb b/test/helper.rb index 730b96c..3f141e4 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -114,6 +114,10 @@ class IO end end if ! IO.method_defined?(:nread) && RUBY_PLATFORM =~ /linux/ +def cloexec_pipe + IO.pipe.each { |io| io.close_on_exec = true } +end + require 'yahns' # needed for parallel (MT) tests) |