mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-4807 Don't run test if there's a security manager installed.
X-SVN-Rev: 18735
This commit is contained in:
parent
118ac3b3ea
commit
188d958fd5
1 changed files with 6 additions and 0 deletions
|
@ -19,6 +19,7 @@ import java.io.ObjectOutputStream;
|
|||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Modifier;
|
||||
import java.net.URL;
|
||||
import java.security.Policy;
|
||||
|
||||
import com.ibm.icu.dev.test.TestFmwk.Target;
|
||||
import com.ibm.icu.dev.test.serializable.CompatibilityTest.HandlerTarget;
|
||||
|
@ -180,6 +181,11 @@ public class CoverageTest extends CompatibilityTest implements URLHandler.URLVis
|
|||
|
||||
protected Target getTargets(String targetName)
|
||||
{
|
||||
if (System.getSecurityManager() != null) {
|
||||
// This test won't run under a security manager
|
||||
return new CoverageTarget("Skipped Due To Security Manager", Modifier.ABSTRACT, null);
|
||||
}
|
||||
|
||||
URL url = getClass().getResource("/com/ibm/icu");
|
||||
URLHandler handler = URLHandler.get(url);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue