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

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


The following commit(s) were added to refs/heads/main by this push:
     new 34da4a29d6 Fix file locking issues on Windows
34da4a29d6 is described below

commit 34da4a29d67c8013d2a77939cebef542c6c88a7a
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]

Reply via email to