summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-01-19 10:11:30 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-01-19 10:11:30 (GMT)
commit9bf48a32f5fd6f9f900f8746b4953c0aff982dde (patch)
treebe81f5aa5726ca27dc01321fef199b8cfb79fee7
parent11815c63abeaf2b768e0cf59a83b53ff2b160b05 (diff)
parentbf7c6ee466d93db7d5af027d5ab503998f8ebf6f (diff)
downloadQt-9bf48a32f5fd6f9f900f8746b4953c0aff982dde.zip
Qt-9bf48a32f5fd6f9f900f8746b4953c0aff982dde.tar.gz
Qt-9bf48a32f5fd6f9f900f8746b4953c0aff982dde.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1: fix doubleformat config.test stabilize qmake autotest
-rw-r--r--config.tests/unix/doubleformat/doubleformattest.cpp2
-rw-r--r--tests/auto/qmake/testcompiler.cpp23
2 files changed, 9 insertions, 16 deletions
diff --git a/config.tests/unix/doubleformat/doubleformattest.cpp b/config.tests/unix/doubleformat/doubleformattest.cpp
index f7b9000..b906e00 100644
--- a/config.tests/unix/doubleformat/doubleformattest.cpp
+++ b/config.tests/unix/doubleformat/doubleformattest.cpp
@@ -54,7 +54,7 @@ tested on x86, arm-le (gp), aix
#include <stdlib.h>
// equals static char c [] = "0123ABCD0123ABCD\0\0\0\0\0\0\0"
-static double d [] = { 710524581542275055616.0, 710524581542275055616.0};
+static double d [] = { 710524581542275055616.0, 710524581542275055616.0, 0.0 };
int main(int argc, char **argv)
{
diff --git a/tests/auto/qmake/testcompiler.cpp b/tests/auto/qmake/testcompiler.cpp
index 021fe9b..dbdeee8 100644
--- a/tests/auto/qmake/testcompiler.cpp
+++ b/tests/auto/qmake/testcompiler.cpp
@@ -142,23 +142,16 @@ bool TestCompiler::runCommand( QString cmdline )
bool failed = false;
child.setReadChannel(QProcess::StandardError);
- while (QProcess::Running == child.state()) {
- if (child.waitForReadyRead(1000)) {
- QString output = child.readAllStandardError();
- testOutput_.append(output);
-
- output.prepend('\n');
- if (output.contains("\nProject MESSAGE: FAILED"))
- failed = true;
- }
- }
-
child.waitForFinished(-1);
- return failed
- ? false
- : (child.exitStatus() == QProcess::NormalExit)
- && (child.exitCode() == 0);
+ foreach (const QByteArray &output, child.readAllStandardError().split('\n')) {
+ testOutput_.append(QString::fromLocal8Bit(output));
+
+ if (output.startsWith("Project MESSAGE: FAILED"))
+ failed = true;
+ }
+
+ return !failed && child.exitStatus() == QProcess::NormalExit && child.exitCode() == 0;
}
void TestCompiler::setBaseCommands( QString makeCmd, QString qmakeCmd )