diff options
Diffstat (limited to 'test/ruby/test_pipe.rb')
-rw-r--r-- | test/ruby/test_pipe.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ruby/test_pipe.rb b/test/ruby/test_pipe.rb new file mode 100644 index 0000000000..a6363ef78b --- /dev/null +++ b/test/ruby/test_pipe.rb @@ -0,0 +1,14 @@ +require 'test/unit' +$:.replace([File.dirname(File.expand_path(__FILE__))] | $:) +require 'ut_eof' +require 'envutil' + +$KCODE = 'none' + +class TestPipe < Test::Unit::TestCase + include TestEOF + def open_file(content) + f = IO.popen("echo -n #{content}") + yield f + end +end |