tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1457465 - /tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/config/DeploymentsElementTest.java
Date Sun, 17 Mar 2013 15:32:10 GMT
Author: rmannibucau
Date: Sun Mar 17 15:32:10 2013
New Revision: 1457465

URL: http://svn.apache.org/r1457465
Log:
a file is always readable by root

Modified:
    tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/config/DeploymentsElementTest.java

Modified: tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/config/DeploymentsElementTest.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/config/DeploymentsElementTest.java?rev=1457465&r1=1457464&r2=1457465&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/config/DeploymentsElementTest.java
(original)
+++ tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/config/DeploymentsElementTest.java
Sun Mar 17 15:32:10 2013
@@ -510,7 +510,7 @@ public class DeploymentsElementTest exte
             final File dir = server.deploymentsDir("myapps");
 
             assertTrue(dir.setReadable(false));
-            if (!dir.canRead()) { // else can't do the test
+            if (!dir.canRead() && !"root".equals(System.getProperty("user.name",
"openejb"))) { // else can't do the test
                 final OpenEjbConfiguration configuration = server.init();
                 assertEquals(0, configuration.containerSystem.applications.size());
             }
@@ -570,7 +570,7 @@ public class DeploymentsElementTest exte
             assertTrue(file.createNewFile());
             assertTrue(file.setReadable(false));
 
-            if (!file.canRead()) { // else can't do the test
+            if (!file.canRead() && !"root".equals(System.getProperty("user.name",
"openejb"))) { // else can't do the test
                 final OpenEjbConfiguration configuration = server.init();
                 assertEquals(0, configuration.containerSystem.applications.size());
             }



Mime
View raw message