Adjust test that only runs on Linux
@@ -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);
