commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1090718 - /commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/TailerTest.java
Date Sun, 10 Apr 2011 00:02:21 GMT
Author: sebb
Date: Sun Apr 10 00:02:21 2011
New Revision: 1090718

URL: http://svn.apache.org/viewvc?rev=1090718&view=rev
Log:
Add testcase fix for IO-269

Modified:
    commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/TailerTest.java

Modified: commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/TailerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/TailerTest.java?rev=1090718&r1=1090717&r2=1090718&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/TailerTest.java (original)
+++ commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/TailerTest.java Sun
Apr 10 00:02:21 2011
@@ -89,6 +89,10 @@ public class TailerTest extends FileBase
 
         // Delete & re-create
         file.delete();
+        boolean exists = file.exists();
+        String osname = System.getProperty("os.name");
+        boolean isWindows = osname.startsWith("Windows");
+        assertFalse("File should not exist (except on Windows)", exists && !isWindows);
         createFile(file, 0);
         Thread.sleep(delay * 2);
 



Mime
View raw message