HomePhabricator

[libc] [UnitTest] Add timeout to death tests

Authored by abrachet on Mar 11 2020, 8:57 PM.

Description

[libc] [UnitTest] Add timeout to death tests

Summary:
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

Reviewers: sivachandra, MaskRay, gchatelet, PaulkaToast

Reviewed By: sivachandra, PaulkaToast

Subscribers: tschuett, libc-commits

Differential Revision: https://reviews.llvm.org/D75651

Details

Committed
abrachetMar 11 2020, 8:57 PM
Reviewer
sivachandra
Differential Revision
D75651: [libc] [UnitTest] Add timeout to death tests
Parents
rGd7c5037e6b9f: Prune TargetInfo.h include from ParsedAttr.h, NFC
Branches
Unknown
Tags
Unknown