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