HomePhabricator

[test] On Mac, don't try to use result of sysctl command if calling it failed.

Authored by DavidSpickett on Jan 13 2020, 5:35 AM.

Description

[test] On Mac, don't try to use result of sysctl command if calling it failed.

If sysctl is not found at all, let the usual exception propogate
so that the user can fix their env. If it fails because of the
permissions required to read the property then print a warning
and continue.

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