You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertTrue(resultHandler.hasResult(), "ResultHandler received a result");
417
+
assertNotNull(resultHandler.getException());
418
+
baos.reset();
419
+
}
420
+
}
421
+
422
422
/**
423
423
* Start a script looping forever (asynchronously) and check if the ExecuteWatchdog kicks in killing the runaway process. To make killing a process more
424
424
* testable the "forever" scripts write each second a '.' into "./target/forever.txt" (a marker file). After a test run we should have a few dots in there.
Copy file name to clipboardExpand all lines: src/test/java/org/apache/commons/exec/issues/Exec36Test.java
+56-56Lines changed: 56 additions & 56 deletions
Original file line number
Diff line number
Diff line change
@@ -51,62 +51,6 @@ class Exec36Test {
51
51
52
52
privateByteArrayOutputStreambaos;
53
53
54
-
/**
55
-
* Some complex real-life command line from https://blogs.msdn.com/b/astebner/archive/2005/12/13/503471.aspx
* Some complex real-life command line from https://blogs.msdn.com/b/astebner/archive/2005/12/13/503471.aspx
75
-
*/
76
-
@Test
77
-
@Disabled
78
-
voidtestExec36Part5() {
79
-
80
-
CommandLinecmdl;
81
-
82
-
finalStringline = "dotnetfx.exe /q:a "
83
-
+ "/c:\"install.exe /l \"\"c:\\Documents and Settings\\myusername\\Local Settings\\Temp\\netfx.log\"\" /q\"";
84
-
85
-
cmdl = CommandLine.parse(line);
86
-
finalString[] args = cmdl.toStrings();
87
-
assertEquals("dotnetfx.exe", args[0]);
88
-
assertEquals("/q:a", args[1]);
89
-
assertEquals("/c:\"install.exe /l \"\"c:\\Documents and Settings\\myusername\\Local Settings\\Temp\\netfx.log\"\" /q\"", args[2]);
* Some complex real-life command line from https://blogs.msdn.com/b/astebner/archive/2005/12/13/503471.aspx
* Some complex real-life command line from https://blogs.msdn.com/b/astebner/archive/2005/12/13/503471.aspx
178
+
*/
179
+
@Test
180
+
@Disabled
181
+
voidtestExec36Part5() {
182
+
183
+
CommandLinecmdl;
184
+
185
+
finalStringline = "dotnetfx.exe /q:a "
186
+
+ "/c:\"install.exe /l \"\"c:\\Documents and Settings\\myusername\\Local Settings\\Temp\\netfx.log\"\" /q\"";
187
+
188
+
cmdl = CommandLine.parse(line);
189
+
finalString[] args = cmdl.toStrings();
190
+
assertEquals("dotnetfx.exe", args[0]);
191
+
assertEquals("/q:a", args[1]);
192
+
assertEquals("/c:\"install.exe /l \"\"c:\\Documents and Settings\\myusername\\Local Settings\\Temp\\netfx.log\"\" /q\"", args[2]);
0 commit comments