Permalink
Browse files

Remove forking test. Closes #763

This causes "file not added for reaping" errors with Selenium, as the
exit handler is called twice.

Thanks @jarib for tracking this one down!
  • Loading branch information...
1 parent f8263d6 commit 1a02b298224bba079ee074fb2c23e40dd823890a @joliss committed Jul 20, 2012
Showing with 0 additions and 17 deletions.
  1. +0 −17 spec/selenium_spec.rb
View
@@ -26,23 +26,6 @@
it_should_behave_like "session without headers support"
it_should_behave_like "session without status code support"
- unless RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
- it "should not interfere with forking child processes" do
- # Launch a browser, which registers the at_exit hook
- browser = Capybara::Selenium::Driver.new(TestApp).browser
-
- # Fork an unrelated child process. This should not run the code in the at_exit hook.
- begin
- pid = fork { "child" }
- Process.wait2(pid)[1].exitstatus.should == 0
- rescue NotImplementedError
- # Fork unsupported (e.g. on JRuby)
- end
-
- browser.quit
- end
- end
-
describe "exit codes" do
before do
@current_dir = Dir.getwd

0 comments on commit 1a02b29

Please sign in to comment.