This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git


The following commit(s) were added to refs/heads/master by this push:
     new 9a7a963bb Adjusty test for macOS
9a7a963bb is described below

commit 9a7a963bb278f5a768a4fed83bb029c31474f5b1
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Jun 6 10:49:23 2024 -0400

    Adjusty test for macOS
---
 src/test/java/org/apache/commons/io/file/PathUtilsTest.java | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/io/file/PathUtilsTest.java 
b/src/test/java/org/apache/commons/io/file/PathUtilsTest.java
index 73a220a0d..92d1fe2e0 100644
--- a/src/test/java/org/apache/commons/io/file/PathUtilsTest.java
+++ b/src/test/java/org/apache/commons/io/file/PathUtilsTest.java
@@ -253,7 +253,12 @@ public class PathUtilsTest extends AbstractTempDirTest {
     @Test
     public void testGetDosFileAttributeView() {
         // dir
-        assertNotNull(PathUtils.getDosFileAttributeView(current()));
+        final DosFileAttributeView dosFileAttributeView = 
PathUtils.getDosFileAttributeView(current());
+        if (SystemUtils.IS_OS_MAC) {
+            assertNull(dosFileAttributeView);
+        } else {
+            assertNotNull(dosFileAttributeView);
+        }
         // missing file
         final Path path = Paths.get("this-file-does-not-exist-at.all");
         assertFalse(Files.exists(path));

Reply via email to