RFR: 8171366 macOS: Do not run failure handler commands that require Developer mode access
staffan.larsen at oracle.com
Fri Dec 16 14:10:16 UTC 2016
Good point. New webrev: http://cr.openjdk.java.net/~sla/8171366/webrev.01/ <http://cr.openjdk.java.net/~sla/8171366/webrev.01/>
> On 16 Dec 2016, at 15:05, Erik Joelsson <erik.joelsson at oracle.com> wrote:
> I would recommend using the -q flag to grep instead of piping to /dev/null. Otherwise I think this looks ok.
> On 2016-12-16 14:45, Staffan Larsen wrote:
>> The failure handler (test/failure_handler) runs a number of commands when it detects a timeout in one of the tests. On OS X some of these commands require "Developer mode" (like getting a core file). If "Developer mode" is not enabled, the tools will open a modal dialog. This is problematic when running automated test. The dialog will also prevent other tests from completing.
>> This patch changes the Failure handler to check if "Developer mode" is enabled before running commands that require it. It also includes the output of "DevToolsSecurity —status” which is used to check for “Developer mode”.
>> Please review the webrev below,
>> bug: https://bugs.openjdk.java.net/browse/JDK-8171366
>> webrev: http://cr.openjdk.java.net/~sla/8171366/webrev.00/
More information about the build-dev