This patch adds a timeout of 500ms to death tests. As we add multithreaded code and locks, deadlocks become more likely so timeout will be useful.
Additionally:
- Better error handling in invokeSubprocess
- Makes ProcessStatus's methods const
Differential D75651
[libc] [UnitTest] Add timeout to death tests abrachet on Mar 4 2020, 3:02 PM. Authored by
Details This patch adds a timeout of 500ms to death tests. As we add multithreaded code and locks, deadlocks become more likely so timeout will be useful. Additionally:
Diff Detail Event Timeline
Comment Actions Added ProcessStatus::timedOut() and better error messages in Test::testProcessExits/Killed Comment Actions This looks ready to me. |
I think for new projects, we don't have to use VariableName. We should use the ideal case variableName.
https://llvm.org/docs/Proposals/VariableNames.html Everyone agrees that the current VariableName convention is broken. People have concerns with existing code base because renaming can clutter up the history. But for a new project, there is simply not meaningful to start with VariableName.