I have a testharness.js layout test which uses throttled network loading and tends to complete in ~2 seconds, but after ~26-28 iterations it starts taking >> 2 seconds; timing out frequently on Mac without a SlowTest suppression and sometimes even with.
Logging seems to indicate that the test has completed, but the layout test runner isn't tearing down for some reason.
Test w/ debugging logs enabled:
I know the test is completing because I can see testharness.js replace the body content via HTMLMediaElement::removedFrom(). There then seems to be something blocking content::BrowserMainRunner::Run() from completing though. I've tried --trace-startup but that doesn't seem to work with layout tests.
I'm unclear on what could stall browser shutdown like this, but it feels like a thread worth tugging on in case this is a real issue somewhere.
Any and all advice welcome. Thanks in advance!
- dale
$ ./blink/tools/run_layout_tests.py --no-retry-failures http/tests/media/media-src-suspend-after-have-future-* --exit-after-n-failures=1 --repeat-each=100 -f --timing --verbose
[1/100] http/tests/media/media-src-suspend-after-have-future-data.html passed 2.9929s
[2/100] http/tests/media/media-src-suspend-after-have-future-data.html passed 2.9942s
[3/100] http/tests/media/media-src-suspend-after-have-future-data.html passed 2.1590s
[4/100] http/tests/media/media-src-suspend-after-have-future-data.html passed 2.1652s
[5/100] http/tests/media/media-src-suspend-after-have-future-data.html passed 2.1743s
[6/100] http/tests/media/media-src-suspend-after-have-future-data.html passed 2.1884s
<...>
[28/100] http/tests/media/media-src-suspend-after-have-future-data.html passed 12.1446s