Skip to content

Commit 3e8f98c

Browse files
committed
Add testcase fix for IO-269
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1090718 13f79535-47bb-0310-9956-ffa450edef68
1 parent 689338a commit 3e8f98c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/test/java/org/apache/commons/io/input/TailerTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ public void testTailer() throws Exception {
8989

9090
// Delete & re-create
9191
file.delete();
92+
boolean exists = file.exists();
93+
String osname = System.getProperty("os.name");
94+
boolean isWindows = osname.startsWith("Windows");
95+
assertFalse("File should not exist (except on Windows)", exists && !isWindows);
9296
createFile(file, 0);
9397
Thread.sleep(delay * 2);
9498

0 commit comments

Comments
 (0)