From 16382306c7b6311ab53f8a88f30ea63dd2e05ab7 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Tue, 25 Jul 2006 06:52:44 +0000 Subject: INTEGRATION: CWS jl35 (1.2.18); FILE MERGED 2006/07/17 13:03:21 jl 1.2.18.1: #67455# test did not work with .NET 2 --- cli_ure/qa/versioning/VersionTestCase.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'cli_ure/qa') diff --git a/cli_ure/qa/versioning/VersionTestCase.java b/cli_ure/qa/versioning/VersionTestCase.java index 7189a2722625..b66cdeb05730 100644 --- a/cli_ure/qa/versioning/VersionTestCase.java +++ b/cli_ure/qa/versioning/VersionTestCase.java @@ -4,9 +4,9 @@ * * $RCSfile: VersionTestCase.java,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: kz $ $Date: 2006-02-03 17:13:30 $ + * last change: $Author: rt $ $Date: 2006-07-25 07:52:44 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -59,11 +59,17 @@ public class VersionTestCase extends ComplexTestCase String unoPath = System.getProperty("uno_path"); if (unoPath == null || unoPath.length() == 0) failed("Check the make file. Java must be called with -Duno_path=path_to_program_directory"); + String sSystemRoot = System.getProperty("SystemRoot"); + if (sSystemRoot == null || sSystemRoot.length() == 0) + failed("Check the make file. Java must be called with -DSystemRoot=%SystemRoot%."); + // System.out.println("UNO_PATH="+unoPath); //We need to set the PATH because otherwise it appears that runtests inherits the PATH //from build environment. Then the bootstrapping fails because the libraries //are not used from the office. - String[] arEnv = new String[] {"PATH=" + unoPath}; + //.NET 2 requires SystemRoot being set. + String[] arEnv = new String[] { + "PATH=" + unoPath, "SystemRoot=" + sSystemRoot}; Process proc = null; proc = Runtime.getRuntime().exec(testProgram, arEnv); -- cgit