From 19daca802968147a0420814ad43425f0055f48c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Bl=C3=A4sing?= Date: Tue, 10 May 2022 20:12:38 +0200 Subject: [PATCH] Improve error message when call to xattr times out and increase timeout to 60s --- .../platform/test/com/sun/jna/platform/mac/XAttrUtilTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/platform/test/com/sun/jna/platform/mac/XAttrUtilTest.java b/contrib/platform/test/com/sun/jna/platform/mac/XAttrUtilTest.java index e3f3501e3e..81e1baf583 100644 --- a/contrib/platform/test/com/sun/jna/platform/mac/XAttrUtilTest.java +++ b/contrib/platform/test/com/sun/jna/platform/mac/XAttrUtilTest.java @@ -157,7 +157,7 @@ public void testReadAlignedCliTool() throws IOException { public void testWriteAlignedCliTool() throws IOException, InterruptedException { Process p = Runtime.getRuntime().exec(new String[] {"xattr", "-w", "JNA", "Java Native Access", testPath}); - assertTrue(p.waitFor(30, TimeUnit.SECONDS)); + assertTrue("Wait for CLI xattr call timed out", p.waitFor(60, TimeUnit.SECONDS)); String resultString = XAttrUtil.getXAttr(testPath, "JNA"); assertEquals("Java Native Access", resultString); }