diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-09-22 15:10:21 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-09-22 15:10:21 (GMT) |
commit | 60ceb77c576bc736924b337c457f82900e34c645 (patch) | |
tree | be5a820b3a9ac12e3266055829c2aebb15085a34 /tests/auto | |
parent | d52e4462652c925a293a22c2880392e0458735bc (diff) | |
parent | 9a5a12a5fe5bdf848756ddad20dabe288a6873de (diff) | |
download | Qt-60ceb77c576bc736924b337c457f82900e34c645.zip Qt-60ceb77c576bc736924b337c457f82900e34c645.tar.gz Qt-60ceb77c576bc736924b337c457f82900e34c645.tar.bz2 |
Merge branch 'qt-master-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration into master-integration
* 'qt-master-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration: (131 commits)
Fix audio glitches in the audiooutput example.
apply msvc flags to wince too
fix qt static build on wince
fix build with QT_NO_GESTURES
Fixed drawing a large number of glyphs with the same font under GL.
qmake: fix quoting of moc calls
Bump version to 4.7.1.
Improved output of patch_capabilities.pl script
Qt headers must be included before X11 headers
Fixes bezier curves not being drawn when it is a line.
Button remains pressed if release event happens outside of widget
Avoid creating copy of an image in memory when storing as jpeg
Use regparm(3) for ICC too, otherwise it's an ABI mismatch in QChar
Regenerate the Unicode tables after updates to the generator tool
Compile in C++0x mode
remove extra includes
minor clean-ups
minor improvements for data parsers
tiny clean-up for generated data
move QUnicodeTables:: script() and lineBreakClass() implementations
...
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/linguist/lupdate/testdata/good/heuristics/expectedoutput.txt | 1 | ||||
-rw-r--r-- | tests/auto/linguist/lupdate/tst_lupdate.cpp | 9 |
2 files changed, 8 insertions, 2 deletions
diff --git a/tests/auto/linguist/lupdate/testdata/good/heuristics/expectedoutput.txt b/tests/auto/linguist/lupdate/testdata/good/heuristics/expectedoutput.txt index 093610d..1eed403 100644 --- a/tests/auto/linguist/lupdate/testdata/good/heuristics/expectedoutput.txt +++ b/tests/auto/linguist/lupdate/testdata/good/heuristics/expectedoutput.txt @@ -1,4 +1,3 @@ -*.*Function 'eval' is not implemented Updating 'project\.ts'\.\.\. Found 3 source text\(s\) \(3 new and 0 already existing\) Removed 5 obsolete entries diff --git a/tests/auto/linguist/lupdate/tst_lupdate.cpp b/tests/auto/linguist/lupdate/tst_lupdate.cpp index 5ba6c52..e6d2135 100644 --- a/tests/auto/linguist/lupdate/tst_lupdate.cpp +++ b/tests/auto/linguist/lupdate/tst_lupdate.cpp @@ -122,12 +122,19 @@ static bool prepareMatch(const QString &expect, QString *tmpl, int *require, int return true; } -void tst_lupdate::doCompare(const QStringList &actual, const QString &expectedFn, bool err) +void tst_lupdate::doCompare(const QStringList &_actual, const QString &expectedFn, bool err) { QFile file(expectedFn); QVERIFY2(file.open(QIODevice::ReadOnly | QIODevice::Text), qPrintable(expectedFn)); QStringList expected = QString(file.readAll()).split('\n'); + QStringList actual; + actual.reserve(_actual.size()); + QRegExp niRx(".*:Function '\\w+' is not implemented"); + foreach (const QString &a, _actual) + if (!niRx.exactMatch(a)) + actual << a; + int ei = 0, ai = 0, em = expected.size(), am = actual.size(); int oei = 0, oai = 0, oem = em, oam = am; int require = 0, accept = 0; |