Move the #include "tst_qurlinternal.moc" up to workaround a bug
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 29 Mar 2012 15:10:47 +0000 (12:10 -0300)
committerQt by Nokia <qt-info@nokia.com>
Thu, 29 Mar 2012 23:19:59 +0000 (01:19 +0200)
I don't know if the bug is in moc or in qmake. But it bails out trying
to parse the .cpp file after the
tst_QUrlInternal::nameprep_testsuite_data function. If the #include is
placed above, it works. If it's placed below, it doesn't.

Change-Id: Ide554aa5aa3f1999e29604ba6d25ccdb09f6ef28
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
tests/auto/corelib/io/qurlinternal/tst_qurlinternal.cpp

index 34b9c94..f853bab 100644 (file)
@@ -104,6 +104,7 @@ private Q_SLOTS:
     void encodingRecodeInvalidUtf8_data();
     void encodingRecodeInvalidUtf8();
 };
+#include "tst_qurlinternal.moc"
 
 void tst_QUrlInternal::idna_testsuite_data()
 {
@@ -979,5 +980,3 @@ void tst_QUrlInternal::encodingRecodeInvalidUtf8()
 }
 
 QTEST_APPLESS_MAIN(tst_QUrlInternal)
-
-#include "tst_qurlinternal.moc"