From 7f20dce264c6f982e84c3b5d60f3ffbf6341c908 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 29 Mar 2012 12:10:47 -0300 Subject: Move the #include "tst_qurlinternal.moc" up to workaround a bug 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 Reviewed-by: Oswald Buddenhagen --- tests/auto/corelib/io/qurlinternal/tst_qurlinternal.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/auto/corelib/io/qurlinternal/tst_qurlinternal.cpp b/tests/auto/corelib/io/qurlinternal/tst_qurlinternal.cpp index 34b9c94865..f853bab9e5 100644 --- a/tests/auto/corelib/io/qurlinternal/tst_qurlinternal.cpp +++ b/tests/auto/corelib/io/qurlinternal/tst_qurlinternal.cpp @@ -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" -- cgit v1.2.3