ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgl...@apache.org
Subject svn commit: r1297123 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/util/SymlinkUtilsTest.java
Date Mon, 05 Mar 2012 16:46:48 GMT
Author: jglick
Date: Mon Mar  5 16:46:48 2012
New Revision: 1297123

URL: http://svn.apache.org/viewvc?rev=1297123&view=rev
Log:
Windows-only failure in Ant-Build-Matrix.

Modified:
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/util/SymlinkUtilsTest.java

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/util/SymlinkUtilsTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/util/SymlinkUtilsTest.java?rev=1297123&r1=1297122&r2=1297123&view=diff
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/util/SymlinkUtilsTest.java (original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/util/SymlinkUtilsTest.java Mon Mar
 5 16:46:48 2012
@@ -18,6 +18,7 @@
 
 package org.apache.tools.ant.util;
 
+import java.io.File;
 import java.io.IOException;
 import junit.framework.TestCase;
 
@@ -27,6 +28,9 @@ public class SymlinkUtilsTest extends Te
         SymbolicLinkUtils.getSymbolicLinkUtils();
 
     public void testRootIsNoSymlink() throws IOException {
+        if (File.pathSeparatorChar == ';') {
+            return; // test is meaningless on Windows
+        }
         assertFalse(SYMLINK_UTILS.isSymbolicLink("/"));
     }
 



Mime
View raw message