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