patch-test_ruby_test_io_rb 452 B

12345678910111213141516
  1. $OpenBSD: patch-test_ruby_test_io_rb,v 1.2 2016/11/19 04:56:00 jeremy Exp $
  2. Work around pthread fifo fdlock bug.
  3. --- test/ruby/test_io.rb.orig Fri Nov 4 20:01:30 2016
  4. +++ test/ruby/test_io.rb Tue Nov 15 07:42:22 2016
  5. @@ -3249,7 +3249,7 @@ End
  6. File.mkfifo("fifo")
  7. assert_separately([], <<-'EOS')
  8. t1 = Thread.new {
  9. - open("fifo", "r") {|r|
  10. + open("fifo", "r+") {|r|
  11. r.read
  12. }
  13. }