6712ef
6712ef
Try a little harder to avoid svnserve() bind failures.
6712ef
6712ef
--- subversion-1.7.9/subversion/bindings/swig/ruby/test/util.rb.rubybind
6712ef
+++ subversion-1.7.9/subversion/bindings/swig/ruby/test/util.rb
6712ef
@@ -41,7 +41,8 @@ module SvnTestUtil
6712ef
     @full_repos_path = File.expand_path(@repos_path)
6712ef
     @repos_uri = "file://#{@full_repos_path.sub(/^\/?/, '/')}"
6712ef
     @svnserve_host = "127.0.0.1"
6712ef
-    @svnserve_ports = (64152..64282).collect{|x| x.to_s}
6712ef
+    sport = (50000 + rand(100) * 100)
6712ef
+    @svnserve_ports = (sport..sport + 99).collect{|x| x.to_s}
6712ef
     @wc_base_dir = File.join(Dir.tmpdir, "wc-tmp")
6712ef
     @wc_path = File.join(@wc_base_dir, "wc")
6712ef
     @full_wc_path = File.expand_path(@wc_path)
6712ef
@@ -249,6 +250,8 @@ realm = #{@realm}
6712ef
                "--listen-port", port,
6712ef
                "-d", "--foreground")
6712ef
         }
6712ef
+        # wait a while for svnserve to attempt a bind() and possibly fail
6712ef
+        sleep(1)
6712ef
         pid, status = Process.waitpid2(@svnserve_pid, Process::WNOHANG)
6712ef
         if status and status.exited?
6712ef
           if $DEBUG