commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject svn commit: r263865 - /jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/FileSystemUtilsTestCase.java
Date Sun, 28 Aug 2005 12:07:04 GMT
Author: scolebourne
Date: Sun Aug 28 05:07:00 2005
New Revision: 263865

URL: http://svn.apache.org/viewcvs?rev=263865&view=rev
Log:
Handle tests being run on Unix

Modified:
    jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/FileSystemUtilsTestCase.java

Modified: jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/FileSystemUtilsTestCase.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/FileSystemUtilsTestCase.java?rev=263865&r1=263864&r2=263865&view=diff
==============================================================================
--- jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/FileSystemUtilsTestCase.java
(original)
+++ jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/FileSystemUtilsTestCase.java
Sun Aug 28 05:07:00 2005
@@ -16,6 +16,7 @@
 package org.apache.commons.io;
 
 import java.io.BufferedReader;
+import java.io.File;
 import java.io.IOException;
 import java.io.StringReader;
 
@@ -54,7 +55,11 @@
     //-----------------------------------------------------------------------
     public void testGetFreeSpace_String() throws Exception {
         // test coverage, as we can't check value
-        assertEquals(true, FileSystemUtils.getFreeSpace("") > 0);
+        if (File.separatorChar == '/') {
+            assertEquals(true, FileSystemUtils.getFreeSpace("~") > 0);
+        } else {
+            assertEquals(true, FileSystemUtils.getFreeSpace("") > 0);
+        }
     }
 
     //-----------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message