ICU-6683 CoverageTest#getTargets to return null under Java security manager instead of the fake target, which triggers a test failure.

X-SVN-Rev: 25271
This commit is contained in:
Yoshito Umaoka 2009-01-19 22:10:07 +00:00
parent 14101daa30
commit 2550a67693

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 2005-2008, International Business Machines Corporation and *
* Copyright (C) 2005-2009, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*
@ -183,7 +183,12 @@ public class CoverageTest extends CompatibilityTest implements URLHandler.URLVis
if (System.getSecurityManager() != null) {
// This test won't run under a security manager
return new CoverageTarget("Skipped Due To Security Manager", Modifier.ABSTRACT, null);
// TODO: Is the above statement really true?
// We probably need to set up the security policy properly
// for writing/reading serialized data.
return null;
}
if(serializable==null){