Author: olamy
Date: Fri Feb 25 22:45:26 2011
New Revision: 1074731

URL: http://svn.apache.org/viewvc?rev=1074731&view=rev
Log:
add some debug for symlink issue

Modified:
    
maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/WorkingDirectoryIT.java

Modified: 
maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/WorkingDirectoryIT.java
URL: 
http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/WorkingDirectoryIT.java?rev=1074731&r1=1074730&r2=1074731&view=diff
==============================================================================
--- 
maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/WorkingDirectoryIT.java
 (original)
+++ 
maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/WorkingDirectoryIT.java
 Fri Feb 25 22:45:26 2011
@@ -24,7 +24,7 @@ import java.io.IOException;
 import java.util.List;
 import java.util.Properties;
 
-import org.apache.commons.io.FileUtils;
+import org.apache.commons.lang.SystemUtils;
 import org.apache.maven.it.Verifier;
 import org.apache.maven.it.util.ResourceExtractor;
 
@@ -79,13 +79,16 @@ public class WorkingDirectoryIT
         assertNotNull( "user.dir was null in property file", userDirPath );
         File userDir = new File( userDirPath );
         // test if not a symlink
+        String message = "canonicalFile " + userDir.getCanonicalPath() + 
SystemUtils.LINE_SEPARATOR  
+                        + " absolutePath " + userDir.getAbsolutePath() + 
SystemUtils.LINE_SEPARATOR
+                        + " path " + userDir.getPath() + 
SystemUtils.LINE_SEPARATOR;
         if ( userDir.getCanonicalFile().equals(userDir.getAbsoluteFile()) )
         {
-            assertEquals( "wrong user.dir ! symlink", 
childTestDir.getAbsolutePath(), userDir.getAbsolutePath() );
+            assertEquals( "wrong user.dir ! symlink " + message, 
childTestDir.getAbsolutePath(), userDir.getAbsolutePath() );
         }
         else
         {
-            assertEquals( "wrong user.dir symlink", 
childTestDir.getCanonicalPath(), userDir.getCanonicalPath() );
+            assertEquals( "wrong user.dir symlink " + message, 
childTestDir.getCanonicalPath(), userDir.getCanonicalPath() );
         }
     }
 


Reply via email to