From 5420009f0f2bbdb4dcc1cdfe31c29b0a54a6c007 Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Tue, 22 May 2012 11:31:33 +0200 Subject: [PATCH] 380222 JettyPolicyRuntimeTest failure --- .../java/org/eclipse/jetty/policy/JettyPolicyRuntimeTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jetty-policy/src/test/java/org/eclipse/jetty/policy/JettyPolicyRuntimeTest.java b/jetty-policy/src/test/java/org/eclipse/jetty/policy/JettyPolicyRuntimeTest.java index 8c1a2e3d05e..d0ff0017a55 100644 --- a/jetty-policy/src/test/java/org/eclipse/jetty/policy/JettyPolicyRuntimeTest.java +++ b/jetty-policy/src/test/java/org/eclipse/jetty/policy/JettyPolicyRuntimeTest.java @@ -30,6 +30,7 @@ import java.util.Set; import org.eclipse.jetty.toolchain.test.MavenTestingUtils; import org.eclipse.jetty.toolchain.test.OS; +import org.eclipse.jetty.util.IO; import org.junit.After; import org.junit.Assume; import org.junit.Before; @@ -54,6 +55,7 @@ public class JettyPolicyRuntimeTest { System.setSecurityManager(null); Policy.setPolicy(null); + IO.delete(new File ("/tmp", "foo")); } @Test @@ -130,6 +132,7 @@ public class JettyPolicyRuntimeTest assertTrue ( test.canRead() ); File test2 = new File( "/tmp/foo" ); + test2.mkdirs(); assertTrue ( test2.canRead() ); try