Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 1a02b298224bba079ee074fb2c23e40dd823890a 1 parent f8263d6
Jo Liss authored July 20, 2012

Showing 1 changed file with 0 additions and 17 deletions. Show diff stats Hide diff stats

  1. 17  spec/selenium_spec.rb
17  spec/selenium_spec.rb
@@ -26,23 +26,6 @@
26 26
     it_should_behave_like "session without headers support"
27 27
     it_should_behave_like "session without status code support"
28 28
 
29  
-    unless RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
30  
-      it "should not interfere with forking child processes" do
31  
-        # Launch a browser, which registers the at_exit hook
32  
-        browser = Capybara::Selenium::Driver.new(TestApp).browser
33  
-
34  
-        # Fork an unrelated child process. This should not run the code in the at_exit hook.
35  
-        begin
36  
-          pid = fork { "child" }
37  
-          Process.wait2(pid)[1].exitstatus.should == 0
38  
-        rescue NotImplementedError
39  
-          # Fork unsupported (e.g. on JRuby)
40  
-        end
41  
-
42  
-        browser.quit
43  
-      end
44  
-    end
45  
-
46 29
     describe "exit codes" do
47 30
       before do
48 31
         @current_dir = Dir.getwd

0 notes on commit 1a02b29

Please sign in to comment.
Something went wrong with that request. Please try again.