diff options
author | lamont-granquist <lamont@scriptkiddie.org> | 2014-08-27 10:03:38 -0700 |
---|---|---|
committer | lamont-granquist <lamont@scriptkiddie.org> | 2014-08-27 10:03:38 -0700 |
commit | 7070c0b3807a68cf56b0f38b21f7e0600d972dfb (patch) | |
tree | 96151d1a0bc26b82eafdfceaf8b6fe3739692dd8 /spec/mixlib/shellout_spec.rb | |
parent | 8d3f6bc696921b964b8b20c812e1da83714670ca (diff) | |
parent | 00cff06778607caf6abf7783d276f441af00237e (diff) | |
download | mixlib-shellout-7070c0b3807a68cf56b0f38b21f7e0600d972dfb.tar.gz |
Merge pull request #56 from ClogenyTechnologies/kd/aix-fdperf
aix - #clean_parent_file_descriptors is slow
Diffstat (limited to 'spec/mixlib/shellout_spec.rb')
-rw-r--r-- | spec/mixlib/shellout_spec.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb index ff493c2..dca66ae 100644 --- a/spec/mixlib/shellout_spec.rb +++ b/spec/mixlib/shellout_spec.rb @@ -1318,19 +1318,5 @@ describe Mixlib::ShellOut do end end end - - describe "#clean_parent_file_descriptors", :unix_only do - # test for for_fd returning a valid File object, but close - # throwing EBADF. - it "should not throw an exception if fd.close throws EBADF" do - fd = double('File') - fd.stub(:close).at_least(:once).and_raise(Errno::EBADF) - File.should_receive(:for_fd).at_least(:once).and_return(fd) - shellout = Mixlib::ShellOut.new() - shellout.instance_variable_set(:@process_status_pipe, [ 98, 99 ]) - lambda { shellout.send(:clean_parent_file_descriptors) }.should_not raise_error - end - end - end end |