From e63bbd5673061075cc1ff9ff528dfe2545b2696c Mon Sep 17 00:00:00 2001 From: Harald Fernengel Date: Sun, 27 Feb 2011 17:49:03 +0100 Subject: fix autotest on windows --- tests/auto/moc/tst_moc.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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()); -- cgit v0.12