Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2020-06-18 10:38:03 +0000
committerSarika Sinha2020-06-18 10:38:03 +0000
commit9427c5d59338815d3d380b9d1be1e58f17c8085e (patch)
tree5b9abf4a71be580ae46c439961c3af5cd5306dea
parent365b4d74002add5f9908ff161b734e901f56e14d (diff)
downloadeclipse.jdt.debug-9427c5d59338815d3d380b9d1be1e58f17c8085e.tar.gz
eclipse.jdt.debug-9427c5d59338815d3d380b9d1be1e58f17c8085e.tar.xz
eclipse.jdt.debug-9427c5d59338815d3d380b9d1be1e58f17c8085e.zip
Bug 561967 - [Tests] 3 tests failing on cen64-gtk3 since I20200406-0350I20200622-1800I20200621-1800I20200620-1800I20200619-1800I20200618-1800
-rw-r--r--org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ProcessTests.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ProcessTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ProcessTests.java
index 0618ccf6d..f9165983c 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ProcessTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ProcessTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2019 IBM Corporation and others.
+ * Copyright (c) 2000, 2020 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -13,6 +13,9 @@
*******************************************************************************/
package org.eclipse.jdt.debug.tests.core;
+import java.io.File;
+
+import org.eclipse.core.runtime.Platform;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunchManager;
@@ -64,7 +67,13 @@ public class ProcessTests extends AbstractDebugTest {
* @throws Exception
*/
public void testAlreadyTerminatedProcess() throws Exception {
- Process process = DebugPlugin.exec(new String[]{"java"}, null);
+ Process process;
+ if (Platform.getOS().equals(Platform.OS_LINUX)) {
+ process = DebugPlugin.exec(new String[] { "java" }, new File("/tmp"));
+ } else {
+ process = DebugPlugin.exec(new String[] { "java" }, null);
+ }
+
boolean terminated = false;
int value = -1;
while (!terminated) {

Back to the top