From 710da8c05f5c39c75864a918fb9cf159bba174c1 Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Wed, 26 Aug 2015 12:05:29 -0700 Subject: Added comment for bug --- spec/mixlib/shellout_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'spec') diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb index e0a99eb..1c5ce31 100644 --- a/spec/mixlib/shellout_spec.rb +++ b/spec/mixlib/shellout_spec.rb @@ -1075,6 +1075,16 @@ describe Mixlib::ShellOut do let(:ruby_code) { "fd = File.for_fd(#{@test_file.to_i}) rescue nil; if fd; fd.seek(0); puts fd.read(5); end" } it "should not see file descriptors of the parent" do + # The reason this test goes through the effor of writing out + # a file and checking the contents along side the presence of + # a file descriptor is because on Windows, we're seeing that + # a there is a file descriptor present, but it's not the same + # file. That means that if we just check for the presence of + # a file descriptor, the test would fail as that slot would + # have something. + # + # See https://github.com/chef/mixlib-shellout/pull/103 + # expect(stdout.chomp).not_to eql("hello") end end -- cgit v1.2.1