Skip to content

Commit

Permalink
Windows does not have Fcntl::F_GETFL.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ford committed Jul 13, 2010
1 parent 9272b67 commit 4d94329
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/io/reopen_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@
@io.gets.should == "Line 1: One\n"
end

it "passes all mode flags through" do
@io.reopen(@name, "ab")
(@io.fcntl(Fcntl::F_GETFL) & File::APPEND).should == File::APPEND
platform_is_not :windows do
it "passes all mode flags through" do
@io.reopen(@name, "ab")
(@io.fcntl(Fcntl::F_GETFL) & File::APPEND).should == File::APPEND
end
end

it "effects exec/system/fork performed after it" do
Expand Down

0 comments on commit 4d94329

Please sign in to comment.