Re: [Spice-devel] [spice-server v2] tests: Automatically determine free port to use

2017-09-22 Thread Frediano Ziglio
> > On Thu, Sep 21, 2017 at 11:11:03AM -0400, Frediano Ziglio wrote: > > > > > > Currently, the port used by most tests is hardcoded to 5912. However, > > > the test suite can be run in parallel, so if 2 tests run in parallel, > > > the 2nd one is not going to be able to bind to port 5912 and

Re: [Spice-devel] [spice-server v2] tests: Automatically determine free port to use

2017-09-21 Thread Christophe Fergeau
On Thu, Sep 21, 2017 at 11:11:03AM -0400, Frediano Ziglio wrote: > > > > Currently, the port used by most tests is hardcoded to 5912. However, > > the test suite can be run in parallel, so if 2 tests run in parallel, > > the 2nd one is not going to be able to bind to port 5912 and will fail. > >

[Spice-devel] [spice-server v2] tests: Automatically determine free port to use

2017-09-21 Thread Christophe Fergeau
Currently, the port used by most tests is hardcoded to 5912. However, the test suite can be run in parallel, so if 2 tests run in parallel, the 2nd one is not going to be able to bind to port 5912 and will fail. After this commit, test_new() will try to find a free port between 5912 and 5922 and