File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed
dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -696,36 +696,9 @@ public void doAfterTest() throws Exception {
696
696
out .println ("isTerminated: false" );
697
697
}
698
698
}
699
- boolean failed = false ;
700
- for (IProcess process : processes ) {
701
- out .println ("TERMINATING" );
702
- out .println ("Process: " + process );
703
-
704
- if (process instanceof RuntimeProcess runtimeProcess ) {
705
- Field field = RuntimeProcess .class .getDeclaredField ("fProcess" );
706
- field .trySetAccessible ();
707
- Process javaProcess = (Process ) field .get (runtimeProcess );
708
- if (javaProcess == null ) {
709
- out .println ("javaProcess: null" );
710
- } else {
711
- javaProcess .destroy ();
712
- out .println ("WAITING" );
713
- boolean waitFor = javaProcess .waitFor (1 , TimeUnit .SECONDS );
714
- out .println ("waitFor: " + waitFor );
715
- if (waitFor ) {
716
- out .println ("exitValue: " + javaProcess .exitValue ());
717
- } else {
718
- failed = true ;
719
- }
720
- }
721
- }
722
- }
723
699
String info = byteArrayOutputStream .toString ("UTF-8" );
724
700
try {
725
701
fLaunch .terminate ();
726
- if (failed ) {
727
- throw new RuntimeException ("Failed to terminate\n info:\n " + info );
728
- }
729
702
} catch (DebugException e ) {
730
703
IStatus status = e .getStatus ();
731
704
if (status != null ) {
You can’t perform that action at this time.
0 commit comments