summaryrefslogtreecommitdiffstats
path: root/tests/auto/moc
diff options
context:
space:
mode:
authorHarald Fernengel <harald.fernengel@nokia.com>2011-02-27 16:49:03 (GMT)
committerHarald Fernengel <harald.fernengel@nokia.com>2011-02-27 16:49:03 (GMT)
commite63bbd5673061075cc1ff9ff528dfe2545b2696c (patch)
tree316271d93fe0475c15aebe97398275d0c278f1f3 /tests/auto/moc
parentd6fb0a8a1536c752c9feb399ce9a160aa6049fce (diff)
downloadQt-e63bbd5673061075cc1ff9ff528dfe2545b2696c.zip
Qt-e63bbd5673061075cc1ff9ff528dfe2545b2696c.tar.gz
Qt-e63bbd5673061075cc1ff9ff528dfe2545b2696c.tar.bz2
fix autotest on windows
Diffstat (limited to 'tests/auto/moc')
-rw-r--r--tests/auto/moc/tst_moc.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/moc/tst_moc.cpp b/tests/auto/moc/tst_moc.cpp
index 860944c..8e5ecb4 100644
--- a/tests/auto/moc/tst_moc.cpp
+++ b/tests/auto/moc/tst_moc.cpp
@@ -1595,6 +1595,13 @@ void tst_Moc::warnings()
QFETCH(QString, expectedStdOut);
QFETCH(QString, expectedStdErr);
+#ifdef Q_CC_MSVC
+ // for some reasons, moc compiled with MSVC uses a different output format
+ QRegExp lineNumberRe(":(\\d+):");
+ lineNumbreRe.setMinimal(true);
+ expectedStdErr.replace(lineNumberRe, "(\\1):");
+#endif
+
QProcess proc;
proc.start("moc", args);
QVERIFY(proc.waitForStarted());