maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1074732 - /maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/WorkingDirectoryIT.java
Date Fri, 25 Feb 2011 22:45:42 GMT
Author: olamy
Date: Fri Feb 25 22:45:42 2011
New Revision: 1074732

URL: http://svn.apache.org/viewvc?rev=1074732&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=1074732&r1=1074731&r2=1074732&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:42 2011
@@ -79,10 +79,10 @@ 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()) )
+        String message = "canonicalFile " + childTestDir.getCanonicalPath() + SystemUtils.LINE_SEPARATOR
 
+                        + " absolutePath " + childTestDir.getAbsolutePath() + SystemUtils.LINE_SEPARATOR
+                        + " path " + childTestDir.getPath() + SystemUtils.LINE_SEPARATOR;
+        if ( childTestDir.getCanonicalFile().equals(childTestDir.getAbsoluteFile()) )
         {
             assertEquals( "wrong user.dir ! symlink " + message, childTestDir.getAbsolutePath(),
userDir.getAbsolutePath() );
         }



Mime
View raw message