tests: fakesink: make notify stress test work better on Windows
authorTim-Philipp Müller <tim@centricular.com>
Thu, 11 Jan 2018 19:52:41 +0000 (19:52 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 11 Jan 2018 19:57:13 +0000 (19:57 +0000)
commitc33e1224a79ad1fbe7f1b11ad0b1c5015989d868
treeb9b55727c2721d61156e3ecb6f7978d85512be32
parenta69dc71f79cea712bdb2806e77b87b59b244e04d
tests: fakesink: make notify stress test work better on Windows

Set up all ten pipelines and preroll them first, and only set
them to playing to run wild after they're all set up. If we set
them to PLAYING directly and let those threads run wild, then
it might take ages (many seconds) for the other pipelines to
even get up and running, especially on machines with only one
or two cores, and operating systems that suck at scheduling.

Now the fakesink test takes 19 secs instead of 71 secs on a
single-cpu windows machine.
tests/check/elements/fakesink.c