You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Brian Zou (Jira)" <ji...@apache.org> on 2021/03/21 01:46:00 UTC
[jira] [Created] (IO-725) FileUtilsDeleteDirectoryLinuxTestCase
fails on Mac
Brian Zou created IO-725:
----------------------------
Summary: FileUtilsDeleteDirectoryLinuxTestCase fails on Mac
Key: IO-725
URL: https://issues.apache.org/jira/browse/IO-725
Project: Commons IO
Issue Type: Bug
Components: Utilities
Affects Versions: 2.9.0
Environment: MacOS Version 11.2.3 (Big Sur) on Java 11.0.9 Maven 3.6.3
MacOS Version 10.14.6 (Mojave) on Java 15.0.2 Maven 3.6.1
Reporter: Brian Zou
Fix For: 2.9.0
Attachments: Text-Log.txt
After cloning the repository using the command line and running the code on a MacBook Pro there is one test error, as shown below.
{code:java}
-------------------------------------------------------------------------------
Test set: org.apache.commons.io.FileUtilsDeleteDirectoryLinuxTestCase
-------------------------------------------------------------------------------
Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.175 s <<< FAILURE! - in org.apache.commons.io.FileUtilsDeleteDirectoryLinuxTestCase
org.apache.commons.io.FileUtilsDeleteDirectoryLinuxTestCase.testDeleteInvalidLinks Time elapsed: 0.004 s <<< ERROR!
org.apache.commons.io.IOExceptionList: /var/folders/zz/szdyqxvs5lg94f9ffy016bsr0000gn/T/junit12436802239416119036/realParentDirC
Caused by: java.io.IOException: Cannot delete file: /var/folders/zz/szdyqxvs5lg94f9ffy016bsr0000gn/T/junit12436802239416119036/realParentDirC/realChildDirD
Caused by: java.nio.file.AccessDeniedException: /var/folders/zz/szdyqxvs5lg94f9ffy016bsr0000gn/T/junit12436802239416119036/realParentDirC/realChildDirD
{code}
This error was also reproduced in an iMac. The pom.xml version is the 2.9.0-SNAPSHOT, which comes from the GitHub repository here: [Apache Commons-io pom.xml|https://github.com/apache/commons-io/blob/master/pom.xml] The logs are attached below as a txt attachment.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)