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