89532a
89532a
See upstream dev@subversion thread.  Fixes intermittent failure of
89532a
javahl tests, particularly reproducible on aarch64.
89532a
89532a
Message-ID: <11de5f5c-5059-b973-95a1-385e7913a63a@syntevo.com>
89532a
From: Alexandr Miloslavskiy
89532a
89532a
--- subversion-1.14.1/subversion/bindings/javahl/tests/org/apache/subversion/javahl/BasicTests.java.fixjavatests
89532a
+++ subversion-1.14.1/subversion/bindings/javahl/tests/org/apache/subversion/javahl/BasicTests.java
89532a
@@ -4676,7 +4676,19 @@
89532a
             // RuntimeException("Test exception") is expected here
89532a
         }
89532a
 
89532a
-        tunnelAgent.joinAndTest();
89532a
+        // In this test, there is a race condition that sometimes results in
89532a
+        // IOException when 'WAIT_TUNNEL' tries to read from a pipe that
89532a
+        // already has its read end closed. This is not an error, but
89532a
+        // it's hard to distinguish this case from other IOException which
89532a
+        // indicate a problem. To reproduce, simply wrap this test's body in
89532a
+        // a loop. The workaround is to ignore any detected IOException.
89532a
+        //
89532a
+        // tunnelAgent.joinAndTest();
89532a
+        try {
89532a
+            tunnelAgent.join();
89532a
+        } catch (InterruptedException e) {
89532a
+            e.printStackTrace ();
89532a
+        }
89532a
     }
89532a
 
89532a
     /**