summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2009-01-06 15:13:58 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2009-01-06 15:13:58 +0000
commit3cf4f345114803f4e4af08b91d61c36a3d57312e (patch)
treeeef25b36a88dd81cbadf5339a9fe72cd298ee3a8 /qadevOOo
parent6ae8d4333c2057832ea5320abc2715b8996f508f (diff)
CWS-TOOLING: integrate CWS qadev37
2008-12-19 11:19:12 +0100 cn r265721 : #i97194 implement cwstouched in perl to avoid problems in python libary stuff 2008-12-19 11:07:50 +0100 cn r265720 : #i97194 implement cwstouched in perl to avoid problems in python libary stuff 2008-12-19 11:06:24 +0100 cn r265719 : #i97194 implement cwstouched in perl to avoid problems in python libary stuff 2008-12-17 12:37:50 +0100 lla r265595 : #i97357# us of illegal characters in file
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/runner/graphical/EnhancedComplexTestCase.java2
-rw-r--r--qadevOOo/runner/helper/CwsDataExchangeImpl.java4
-rw-r--r--qadevOOo/runner/helper/ProcessHandler.java5
3 files changed, 6 insertions, 5 deletions
diff --git a/qadevOOo/runner/graphical/EnhancedComplexTestCase.java b/qadevOOo/runner/graphical/EnhancedComplexTestCase.java
index a39c3f287f99..de67ece367ec 100644
--- a/qadevOOo/runner/graphical/EnhancedComplexTestCase.java
+++ b/qadevOOo/runner/graphical/EnhancedComplexTestCase.java
@@ -51,7 +51,7 @@ private void callEntry(String _sEntry, ParameterHelper _aParam)
{
log.println("- next file is: ------------------------------");
log.println(_sEntry);
- // TODO: prüfen, ob 'sEntry' ein gültiges Dokument ist?
+ // TODO: check if 'sEntry' is a guilty document.
File aFile = new File(_aParam.getInputPath());
String sPath = _aParam.getInputPath();
// problem here, isFile() checks also if the file exists, but a not existing file is not really a directory
diff --git a/qadevOOo/runner/helper/CwsDataExchangeImpl.java b/qadevOOo/runner/helper/CwsDataExchangeImpl.java
index 4341fa3f47d5..782d944e3009 100644
--- a/qadevOOo/runner/helper/CwsDataExchangeImpl.java
+++ b/qadevOOo/runner/helper/CwsDataExchangeImpl.java
@@ -78,14 +78,14 @@ public class CwsDataExchangeImpl implements CwsDataExchange {
final String[] outs = procHdl.getOutputText().split("\n");
- final ArrayList moduleNames = new ArrayList();
+ final ArrayList<String> moduleNames = new ArrayList<String>();
boolean start = false;
for (int i = 0; i < outs.length; i++) {
final String line = outs[i];
if (line.startsWith("cwstouched ends here")) {
start = false;
}
- if (start && !line.equals("")) {
+ if (start && line.length() > 1) {
moduleNames.add(line);
}
if (line.startsWith("cwstouched starts here")) {
diff --git a/qadevOOo/runner/helper/ProcessHandler.java b/qadevOOo/runner/helper/ProcessHandler.java
index 00da332acf5d..c1892094d093 100644
--- a/qadevOOo/runner/helper/ProcessHandler.java
+++ b/qadevOOo/runner/helper/ProcessHandler.java
@@ -338,20 +338,21 @@ public class ProcessHandler {
ow = (OfficeWatcher) param.get(PropertyName.OFFICE_WATCHER);
}
- while (changedText && !this.isFinished()) {
+ while (!this.isFinished() && changedText) {
count++;
if (ow != null) {
ow.ping();
}
dbg("runCommand: waiting " + mTimeOut / 1000 + " seconds while command execution is ongoing... " + count);
shortWait(mTimeOut);
+ //waitFor(mTimeOut);
if (ow != null) {
ow.ping();
}
// check for changes in the output stream. If there are no changes, the process maybe hangs
if (!this.isFinished()) {
- if (this.getOutputText().equals(memText)) {
+ if (this.getOutputText().length() == memText.length()) {
changedText = false;
dbg("runCommand Could not detect changes in output stream!!!");