380222 JettyPolicyRuntimeTest failure

This commit is contained in:
Jan Bartel 2012-05-22 11:31:33 +02:00
parent 6f6164862f
commit 5420009f0f
1 changed files with 3 additions and 0 deletions

View File

@ -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