test: process: Extend timeout duration
The process test runs for just 100mS. The spawned process runs for at least 50mS. Ordinarily this should allow plenty of time for both the process to be spawned and run, but when adding extra debug instrumentation, the processes can be slowed down, leading to a false negative test failure. Extend the timeout to 2 seconds to allow the short process to be run correctly - but use the now initialised exitStatus_ to exit the event loop as soon as the process has completed. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
122892d1bc
commit
ff09b6d378
1 changed files with 2 additions and 2 deletions
|
@ -56,8 +56,8 @@ protected:
|
|||
return TestFail;
|
||||
}
|
||||
|
||||
timeout.start(100);
|
||||
while (timeout.isRunning())
|
||||
timeout.start(2000);
|
||||
while (timeout.isRunning() && exitStatus_ == Process::NotExited)
|
||||
dispatcher->processEvents();
|
||||
|
||||
if (exitStatus_ != Process::NormalExit) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue