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

markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new d8b6872a04 Fix file locking issues on Windows
d8b6872a04 is described below

commit d8b6872a04ccbd7f9ef83283a8893ff027bb02b5
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 1be851ec45..4b258d8274 100644
--- a/test/org/apache/juli/TestFileHandler.java
+++ b/test/org/apache/juli/TestFileHandler.java
@@ -155,6 +155,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]

Reply via email to