fixed test for windows clion/142.2422
authorEgor.Ushakov <egor.ushakov@jetbrains.com>
Fri, 12 Jun 2015 08:57:44 +0000 (11:57 +0300)
committerEgor.Ushakov <egor.ushakov@jetbrains.com>
Fri, 12 Jun 2015 08:57:44 +0000 (11:57 +0300)
platform/util/testSrc/com/intellij/execution/process/ProcessWaitForTest.java

index 4042b0b450b4dbee31bea251df9e8b9315ce6995..d596bce075e90a7fd185d0bdd152077ab4b55939 100644 (file)
@@ -15,6 +15,7 @@
  */
 package com.intellij.execution.process;
 
+import com.intellij.openapi.util.SystemInfo;
 import com.intellij.util.Consumer;
 import com.intellij.util.concurrency.Semaphore;
 import org.junit.Test;
@@ -27,7 +28,7 @@ import static org.junit.Assert.assertTrue;
 public class ProcessWaitForTest {
   @Test(timeout = 10000)
   public void notification() throws IOException, InterruptedException {
-    File jvm = new File(System.getProperty("java.home"), "bin/java");
+    File jvm = new File(System.getProperty("java.home") + (SystemInfo.isWindows ? "\\bin\\java.exe" : "/bin/java"));
     assertTrue(jvm.canExecute());
 
     final Semaphore semaphore = new Semaphore();