We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bc2ae2 commit 740ccc8Copy full SHA for 740ccc8
core/process/spawn_spec.rb
@@ -567,12 +567,14 @@ def child_pids(pid)
567
end
568
569
570
- it "redirects non-default file descriptor to itself" do
571
- File.open(@name, 'w') do |file|
572
- -> do
573
- Process.wait Process.spawn(
574
- ruby_cmd("f = IO.new(#{file.fileno}, 'w'); f.print(:bang); f.flush"), file.fileno => file.fileno)
575
- end.should output_to_fd("bang", file)
+ platform_is_not :windows do
+ it "redirects non-default file descriptor to itself" do
+ File.open(@name, 'w') do |file|
+ -> do
+ Process.wait Process.spawn(
+ ruby_cmd("f = IO.new(#{file.fileno}, 'w'); f.print(:bang); f.flush"), file.fileno => file.fileno)
576
+ end.should output_to_fd("bang", file)
577
+ end
578
579
580
0 commit comments