summaryrefslogtreecommitdiffstats
path: root/tests/auto/headers
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-06-04 13:12:00 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-06-04 13:28:43 (GMT)
commit7eb85cdd2a507b6fa1f8023b26f8b34e2fe6f2c4 (patch)
tree6c9d9ae888c501e9ad7886304d0873421f24d3f8 /tests/auto/headers
parente2382d731249dc57e7c538ec60b3f1f714741cfd (diff)
downloadQt-7eb85cdd2a507b6fa1f8023b26f8b34e2fe6f2c4.zip
Qt-7eb85cdd2a507b6fa1f8023b26f8b34e2fe6f2c4.tar.gz
Qt-7eb85cdd2a507b6fa1f8023b26f8b34e2fe6f2c4.tar.bz2
Autotest: fix detection of generated files and strip the first line
Reviewed-by: TrustMe
Diffstat (limited to 'tests/auto/headers')
-rw-r--r--tests/auto/headers/tst_headers.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/headers/tst_headers.cpp b/tests/auto/headers/tst_headers.cpp
index 607d655..7e32deb 100644
--- a/tests/auto/headers/tst_headers.cpp
+++ b/tests/auto/headers/tst_headers.cpp
@@ -135,6 +135,9 @@ void tst_Headers::licenseCheck()
QByteArray data = f.readAll();
QStringList content = QString::fromLocal8Bit(data.replace('\r',"")).split("\n");
+ if (content.first().contains("generated"))
+ content.takeFirst();
+
QVERIFY(licensePattern.exactMatch(content.at(7)) ||
licensePattern.exactMatch(content.at(4)));
QString licenseType = licensePattern.cap(1);