diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-06-03 03:44:07 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-06-03 03:44:07 (GMT) |
commit | c0932de90e141d6f3eef3388c3caae22f3982798 (patch) | |
tree | d452c98631a23b19389d09562b6c2dea8543eb7b /tests/auto/maketestselftest/tst_maketestselftest.cpp | |
parent | 9140579d9e39f2a521cdab81ac09e2919645f108 (diff) | |
download | Qt-c0932de90e141d6f3eef3388c3caae22f3982798.zip Qt-c0932de90e141d6f3eef3388c3caae22f3982798.tar.gz Qt-c0932de90e141d6f3eef3388c3caae22f3982798.tar.bz2 |
Fixed tst_maketestselftest on QWS and Windows.
Diffstat (limited to 'tests/auto/maketestselftest/tst_maketestselftest.cpp')
-rw-r--r-- | tests/auto/maketestselftest/tst_maketestselftest.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/auto/maketestselftest/tst_maketestselftest.cpp b/tests/auto/maketestselftest/tst_maketestselftest.cpp index 9f8e2c5..c3cbf76 100644 --- a/tests/auto/maketestselftest/tst_maketestselftest.cpp +++ b/tests/auto/maketestselftest/tst_maketestselftest.cpp @@ -494,16 +494,15 @@ void tst_MakeTestSelfTest::make_check() QVERIFY(make.waitForFinished(1000 * 60 * 10)); QCOMPARE(make.exitStatus(), QProcess::NormalExit); - int fail = 0; int pass = 0; QList<QByteArray> out = make.readAllStandardOutput().split('\n'); + QStringList fails; foreach (QByteArray line, out) { while (line.endsWith("\r")) { line.chop(1); } if (line.startsWith("CHECKTEST FAIL")) { - QWARN(line.constData()); - ++fail; + fails << QString::fromLocal8Bit(line); } if (line.startsWith("CHECKTEST PASS")) { ++pass; @@ -513,7 +512,10 @@ void tst_MakeTestSelfTest::make_check() // We can't check that the exit code of make is 0, because some tests // may have failed to compile, but that doesn't mean `make check' is broken. // We do assume there are at least this many unbroken tests, though. - QCOMPARE(fail, 0); + QVERIFY2(fails.count() == 0, + qPrintable(QString("`make check' doesn't work for %1 tests:\n%2") + .arg(fails.count()).arg(fails.join("\n"))) + ); QVERIFY(pass > 50); } |