diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-25 10:05:28 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-25 10:09:10 (GMT) |
commit | 4c12010fac555bce0a6c8d69a267a56f4c15087f (patch) | |
tree | 0d8c7ef4d8ad1e412bae216478fe7ddd6ecf6897 /tests/auto | |
parent | a4bee26c82d87241bde62188f7871d601e3242d3 (diff) | |
download | Qt-4c12010fac555bce0a6c8d69a267a56f4c15087f.zip Qt-4c12010fac555bce0a6c8d69a267a56f4c15087f.tar.gz Qt-4c12010fac555bce0a6c8d69a267a56f4c15087f.tar.bz2 |
Fix a running external tests: user program headers must come first.
No wonder QT_SHAREDPOINTER_TRACK_POINTERS was having no effect:
there was an #include <QtCore/QtCore> before it.
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qsharedpointer/externaltests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qsharedpointer/externaltests.cpp b/tests/auto/qsharedpointer/externaltests.cpp index d10c161..aaef779 100644 --- a/tests/auto/qsharedpointer/externaltests.cpp +++ b/tests/auto/qsharedpointer/externaltests.cpp @@ -360,6 +360,8 @@ namespace QTest { sourceCode.clear(); sourceCode.reserve(8192); + sourceCode += programHeader; + // Add Qt header includes if (qtModules & QExternalTest::QtCore) sourceCode += "#include <QtCore/QtCore>\n"; @@ -393,8 +395,6 @@ namespace QTest { "#include <stdlib.h>\n" "#include <stddef.h>\n"; - sourceCode += programHeader; - sourceCode += "\n" "void q_external_test_user_code()\n" |