Skip to content

Instantly share code, notes, and snippets.

View jpcamara's full-sized avatar

JP Camara jpcamara

View GitHub Profile
# hangs, same as MN threads
# RUBY_MN_THREADS=1 make test-all TESTS="--name=TestIO#test_open_fifo_does_not_block_other_threads"
require "tempfile"
require "async"
def mkcdtmpdir
Dir.mktmpdir {|d|
Dir.chdir(d) {
yield