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