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