google / gtest-parallel

Run Google Test suites in parallel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the running test cases are not actively killed

breezewish opened this issue · comments

Suppose we have only one test to run, which will stuck forever, for whatever reason.

Running the gtest-parallel by assigning --timeout=x will be also stuck forever, instead of finished in time and reporting that test to be timed out.

The problem occurs because we wait the process to be finished without a time out:

code = p.wait()

A solution might be https://stackoverflow.com/a/10012262/4597218