summaryrefslogtreecommitdiff
path: root/cli_ure/qa
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2006-07-25 06:52:44 +0000
committerRüdiger Timm <rt@openoffice.org>2006-07-25 06:52:44 +0000
commit16382306c7b6311ab53f8a88f30ea63dd2e05ab7 (patch)
treefd2b8be2f6b5042401b62950c4627ff51c2d37d3 /cli_ure/qa
parentfefc4df238e097fe580b9c998f165e7c7ec3095a (diff)
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
Diffstat (limited to 'cli_ure/qa')
-rw-r--r--cli_ure/qa/versioning/VersionTestCase.java12
1 files changed, 9 insertions, 3 deletions
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);