Please review this test bug fix,
The test creates a child process to display a warning window.
That child process is expected to end within 5 seconds.
But on some slower or busy system, child process takes more
time to end which causes failure.
Fix is to wait more time for child process to end.
Now the test will wait for maximum of 10 seconds in iteration of 2 seconds.