380222 JettyPolicyRuntimeTest failure
This commit is contained in:
parent
6f6164862f
commit
5420009f0f
|
@ -30,6 +30,7 @@ import java.util.Set;
|
||||||
|
|
||||||
import org.eclipse.jetty.toolchain.test.MavenTestingUtils;
|
import org.eclipse.jetty.toolchain.test.MavenTestingUtils;
|
||||||
import org.eclipse.jetty.toolchain.test.OS;
|
import org.eclipse.jetty.toolchain.test.OS;
|
||||||
|
import org.eclipse.jetty.util.IO;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Assume;
|
import org.junit.Assume;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
@ -54,6 +55,7 @@ public class JettyPolicyRuntimeTest
|
||||||
{
|
{
|
||||||
System.setSecurityManager(null);
|
System.setSecurityManager(null);
|
||||||
Policy.setPolicy(null);
|
Policy.setPolicy(null);
|
||||||
|
IO.delete(new File ("/tmp", "foo"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -130,6 +132,7 @@ public class JettyPolicyRuntimeTest
|
||||||
assertTrue ( test.canRead() );
|
assertTrue ( test.canRead() );
|
||||||
|
|
||||||
File test2 = new File( "/tmp/foo" );
|
File test2 = new File( "/tmp/foo" );
|
||||||
|
test2.mkdirs();
|
||||||
assertTrue ( test2.canRead() );
|
assertTrue ( test2.canRead() );
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in New Issue