Adjust test that only runs on Linux
MODIFY
src/test/java/org/apache/commons/io/FileUtilsDeleteDirectoryLinuxTest.java
src/test/java/org/apache/commons/io/FileUtilsDeleteDirectoryLinuxTest.java
@@ -87,7 +87,7 @@ public void testThrowsOnCannotDeleteFile() throws Exception {
fail("expected IOException");
} catch (final IOException e) {
final IOExceptionList list = (IOExceptionList) e;
- assertEquals("Cannot delete file: " + file.getAbsolutePath(), list.getCause(0).getMessage());
+ assertTrue(list.getCause(0).getMessage().endsWith("Cannot delete file: " + file.getAbsolutePath()));
} finally {
chmod(nested, 755, false);
FileUtils.deleteDirectory(nested);

Adjust test that only runs on Linux