RFR: (XS) 8162916:Test sun/security/krb5/auto/UnboundSSL.java fails

Artem Smotrakov artem.smotrakov at oracle.com
Thu Aug 18 16:45:44 UTC 2016


Hi Sean,

The patch below looks fine to me, but I am not an official reviewer.

Artem


On 08/18/2016 08:28 AM, Seán Coffey wrote:
> Thanks for the tip Artem, Max. No need to modify the policy file then. 
> Below is the new suggested patch for jdk8u-dev. JPRT results are good.
>
> diff --git a/test/sun/security/krb5/auto/UnboundSSL.java 
> b/test/sun/security/krb5/auto/UnboundSSL.java
> --- a/test/sun/security/krb5/auto/UnboundSSL.java
> +++ b/test/sun/security/krb5/auto/UnboundSSL.java
> @@ -34,9 +34,9 @@
>   * @bug 8025123
>   * @summary Checks if an unbound server can handle connections
>   *          only for allowed service principals
> - * @run main/othervm/policy=unbound.ssl.policy UnboundSSL
> + * @run main/othervm/java.security.policy=unbound.ssl.policy UnboundSSL
>   *                              unbound.ssl.jaas.conf server_star
> - * @run main/othervm/policy=unbound.ssl.policy UnboundSSL
> + * @run main/othervm/java.security.policy=unbound.ssl.policy UnboundSSL
>   *                              unbound.ssl.jaas.conf 
> server_multiple_principals
>   */
>  public class UnboundSSL {
>
> Regards,
> Sean.
>
> On 18/08/2016 04:11, Weijun Wang wrote:
>>>>> If I recall correctly, there should be a way to specify a policy file
>>>>> in @run without overriding the default one. May be it is "@run
>>>>> main/othervm/java.security.policy=unbound.ssl.policy_new"
>>
>> Yes, I think this should work. I've also just learned about it and 
>> don't know from which jtreg it is supported. Hopefully the 
>> minimized-required version of jtreg for jdk8u already has it.
>>
>> --Max
>>
>




More information about the security-dev mailing list