Skip to content

Commit 08002a7

Browse files
committed
Applying patch in CLI-40 that avoids the test from failing sometimes on Windows
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk@412457 13f79535-47bb-0310-9956-ffa450edef68
1 parent c967bd6 commit 08002a7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/test/org/apache/commons/cli2/validation/FileValidatorTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ private void attribute(String attr) {
150150
Process proc = Runtime.getRuntime().exec(
151151
"attrib.exe +" + attr + " src/test/data/.hidden.txt",
152152
null, new File("."));
153+
proc.waitFor();
154+
} catch (InterruptedException e) {
155+
System.out.println(e.getMessage());
156+
e.printStackTrace();
153157
} catch (IOException e) {
154158
System.out.println(e.getMessage());
155159
e.printStackTrace();

0 commit comments

Comments
 (0)