Thanks Erik!
> On 16 Jan 2017, at 11:48, Erik Joelsson <erik.joels...@oracle.com> wrote:
>
> Looks good to me.
>
> /Erik
>
>
> On 2017-01-16 09:24, Staffan Larsen wrote:
>> When the failure handler invokes lldb to create a core it looks something
>> like this:
>>
>> lldb -o 'attach %p' -o 'process save-core core.%p' -o 'detach' -o 'quit'
>>
>> However if the attach command fails, the rest of the commands - including
>> 'quit' - are not being run. This means the lldb process is hung.
>>
>> Adding '--batch' to the command line overcomes this problem.
>>
>> Thanks,
>> /Staffan
>>
>>
>> diff --git a/test/failure_handler/src/share/conf/mac.properties
>> b/test/failure_handler/src/share/conf/mac.properties
>> --- a/test/failure_handler/src/share/conf/mac.properties
>> +++ b/test/failure_handler/src/share/conf/mac.properties
>> @@ -64,7 +64,7 @@
>> native.core.app=bash
>> native.core.delimiter=\0
>> native.core.args=-c\0gcore -o ./core.%p %p || \
>> - (DevToolsSecurity --status | grep -q enabled && lldb -o 'attach %p' -o
>> 'process save-core core.%p' -o 'detach' -o 'quit')
>> + (DevToolsSecurity --status | grep -q enabled && lldb --batch -o 'attach
>> %p' -o 'process save-core core.%p' -o 'detach' -o 'quit')
>> native.core.params.timeout=3600000
>>
>> ################################################################################
>> # environment info to gather
>>
>