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