From 4d94b392eaa71fbb60e40af5b8a40abef6964572 Mon Sep 17 00:00:00 2001 From: brinn <brinn> Date: Tue, 10 Jun 2008 09:42:13 +0000 Subject: [PATCH] change: relax test for startup failure message to succeed with both JRE 1.5 and 1.6 SVN: 6534 --- .../cisd/common/process/ProcessExecutionHelperTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/sourceTest/java/ch/systemsx/cisd/common/process/ProcessExecutionHelperTest.java b/common/sourceTest/java/ch/systemsx/cisd/common/process/ProcessExecutionHelperTest.java index f63ebd9caf6..e48bd216765 100644 --- a/common/sourceTest/java/ch/systemsx/cisd/common/process/ProcessExecutionHelperTest.java +++ b/common/sourceTest/java/ch/systemsx/cisd/common/process/ProcessExecutionHelperTest.java @@ -269,8 +269,9 @@ public class ProcessExecutionHelperTest operationLog, machineLog); result.log(); assertFalse(result.isRun()); - assertTrue(result.getStartupFailureMessage().indexOf( - "some_non_existent_executable: not found") >= 0); + assertTrue(result.getStartupFailureMessage(), result.getStartupFailureMessage().indexOf( + "some_non_existent_executable") >= 0 + && result.getStartupFailureMessage().indexOf("IOException") >= 0); System.out.println("Startup failure: " + result.getStartupFailureMessage()); } -- GitLab