This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 2f82d42a99 Fix file locking issues on Windows
2f82d42a99 is described below
commit 2f82d42a99e613a3d4c0b2344f3a93267737e05d
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Oct 22 18:22:59 2026 +0100
Fix file locking issues on Windows
---
test/org/apache/juli/TestFileHandler.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/org/apache/juli/TestFileHandler.java
b/test/org/apache/juli/TestFileHandler.java
index 30c83e735d..8ac3e13b52 100644
--- a/test/org/apache/juli/TestFileHandler.java
+++ b/test/org/apache/juli/TestFileHandler.java
@@ -161,6 +161,7 @@ public class TestFileHandler {
}
private int countFiles(String prefix) {
+ System.gc();
int count = 0;
for (File file : logsDir.listFiles()) {
if (file.getName().startsWith(prefix)) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]