Mercurial > hg > openjdk > jdk8 > jdk
changeset 8760:8a4405fb40ba
8027752: sun/tools/jstatd/TestJstatdExternalRegistry.java: java.lang.SecurityException: attempt to add a Permission to a readonly Permissions object
Reviewed-by: sla, jbachorik
author | ykantser |
---|---|
date | Thu, 07 Nov 2013 16:55:39 +0100 |
parents | b5748857ef42 |
children | 41d7ce111bd8 |
files | test/sun/tools/jstatd/JstatdTest.java |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/test/sun/tools/jstatd/JstatdTest.java Fri Nov 08 08:47:39 2013 +0100 +++ b/test/sun/tools/jstatd/JstatdTest.java Thu Nov 07 16:55:39 2013 +0100 @@ -291,6 +291,8 @@ launcher.addVMArg("-XX:+UsePerfData"); String testSrc = System.getProperty("test.src"); File policy = new File(testSrc, "all.policy"); + assertTrue(policy.exists() && policy.isFile(), + "Security policy " + policy.getAbsolutePath() + " does not exist or not a file"); launcher.addVMArg("-Djava.security.policy=" + policy.getAbsolutePath()); if (port != null) { launcher.addToolArg("-p");