1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_process.rb: unfortunately, windows is not POSIX...

cygwin has mkfifo command, but it does not affect system-wide.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2015-04-09 23:03:35 +00:00
parent 79f940cda1
commit f40379378a
2 changed files with 8 additions and 3 deletions

View file

@ -1,7 +1,12 @@
Fri Apr 10 08:00:17 2015 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_process.rb: unfortunately, windows is not POSIX...
cygwin has mkfifo command, but it does not affect system-wide.
Fri Apr 10 02:18:53 2015 Tanaka Akira <akr@fsij.org>
* test/ruby/test_process.rb: Use mkfifo command instead of mknod
command to create a named file. mkfifo commandis defined by POSIX.
command to create a named file. mkfifo command is defined by POSIX.
Fri Apr 10 01:29:05 2015 Tanaka Akira <akr@fsij.org>

View file

@ -562,7 +562,7 @@ class TestProcess < Test::Unit::TestCase
with_tmpchdir {|d|
system("mkfifo fifo")
return if !$?.success?
assert(FileTest.pipe?("fifo"))
assert(FileTest.pipe?("fifo"), "should be pipe")
t1 = Thread.new {
system(*ECHO["output to fifo"], :out=>"fifo")
}
@ -572,7 +572,7 @@ class TestProcess < Test::Unit::TestCase
v1, v2 = assert_join_threads([t1, t2])
assert_equal("output to fifo\n", v2)
}
end
end unless windows? # does not support fifo
def test_execopts_redirect_pipe
with_pipe {|r1, w1|