Skip to content

Commit c5c152e

Browse files
committed
Allowance for Java 25, GitHub CI on Windows, when cloned repository is
on a different volume than the Java temporary directory. - On GitHub CI on Windows, the cloned repository is on a different volume than the Java temporary directory. - This means we cannot use the source file directly as the target of a link. - Copy the text fixture to the destination directory to make sure it is on the same volume as the Java temporary directory. Seen on GitHub on macOS: Apache Maven 3.9.12 (848fbb4bf2d427b72bdb2471c22fced7ebd9a7a1) Maven home: /opt/homebrew/Cellar/maven/3.9.12/libexec Java version: 1.8.0_482, vendor: Azul Systems, Inc., runtime: /Users/runner/hostedtoolcache/Java_Zulu_jdk/8.0.482-8/arm64/jre Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "15.7.4", arch: "aarch64", family: "mac" ... [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.084 s -- in org.apache.commons.io.filefilter.WildcardFileFilterTest /Users/runner/work/_temp/7937f890-35c1-4d5c-80e6-45c356b208f7.sh: line 1: 19348 Abort trap: 6 mvn --errors --show-version --batch-mode --no-transfer-progress -DtrimStackTrace=false V [libjvm.dylib+0xee1f8] ObjectStartArray::object_start(HeapWord*) const+0x120 Error: Process completed with exit code 134.
1 parent b63f1f5 commit c5c152e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/test/java/org/apache/commons/io/file/FilesUncheckTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,11 @@ public static void beforeAll() throws IOException {
9696
NEW_DIR_PATH = DEST_PATH.resolve("newdir");
9797
NEW_FILE_PATH = DEST_PATH.resolve("file.txt");
9898
NEW_FILE_PATH_LINK = DEST_PATH.resolve("to_another_file.txt");
99+
// Allowance for Java 25, GitHub CI on Windows, when cloned repository is on a different volume than the Java temporary directory.
100+
// Details:
99101
// On GitHub CI on Windows, the cloned repository is on a different volume than the Java temporary directory.
100-
// This means we cannot use the source file directly as the target of a link.
101-
// Copy the text fixture to the destination directory to make sure it is on the same volume.
102+
// This means we cannot use the source file directly as the target of a link.
103+
// Copy the text fixture to the destination directory to make sure it is on the same volume as the Java temporary directory.
102104
FILE_PATH_EMPTY = Files.copy(FILE_PATH_EMPTY_SRC, DEST_PATH.resolve(FILE_PATH_EMPTY_SRC.getFileName()));
103105
}
104106

0 commit comments

Comments
 (0)