bf858c5
bf858c5
Try a little harder to avoid svnserve() bind failures.
bf858c5
83f457f
--- subversion-1.8.0/subversion/bindings/swig/ruby/test/util.rb.rubybind
83f457f
+++ subversion-1.8.0/subversion/bindings/swig/ruby/test/util.rb
83f457f
@@ -39,7 +39,8 @@ module SvnTestUtil
83f457f
     @realm = "sample realm"
83f457f
 
bf858c5
     @svnserve_host = "127.0.0.1"
bf858c5
-    @svnserve_ports = (64152..64282).collect{|x| x.to_s}
bf858c5
+    sport = (50000 + rand(100) * 100)
bf858c5
+    @svnserve_ports = (sport..sport + 99).collect{|x| x.to_s}
83f457f
 
83f457f
     @tmp_path = Dir.mktmpdir
83f457f
     @wc_path = File.join(@tmp_path, "wc")
83f457f
@@ -252,6 +253,8 @@ realm = #{@realm}
bf858c5
                "--listen-port", port,
bf858c5
                "-d", "--foreground")
bf858c5
         }
bf858c5
+        # wait a while for svnserve to attempt a bind() and possibly fail
bf858c5
+        sleep(1)
bf858c5
         pid, status = Process.waitpid2(@svnserve_pid, Process::WNOHANG)
bf858c5
         if status and status.exited?
bf858c5
           if $DEBUG