google / gtest-parallel

Run Google Test suites in parallel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The reported test duration is wrong when timed out

breezewish opened this issue · comments

Suppose we have timeout = 5s, and the following timeline:

0s: Started test1, test2, test3
1s: Running
2s: Running
3s: test1, test2, test3 finished, start test4, test 5
4s: Running
5s: Timedout
6s: test4 and test5 finished

In this case, gtest-parallel incorrectly prints test4 and test5 to have running time for 5s. Their correct running time is 3s.