equal
deleted
inserted
replaced
1715 #ifdef QTEST_CROSS_COMPILED |
1715 #ifdef QTEST_CROSS_COMPILED |
1716 QSKIP("This test does not work on cross compiled systems", SkipAll); |
1716 QSKIP("This test does not work on cross compiled systems", SkipAll); |
1717 #endif |
1717 #endif |
1718 |
1718 |
1719 QTest::QExternalTest test; |
1719 QTest::QExternalTest test; |
1720 test.setDebugMode(true); |
|
1721 test.setQtModules(QTest::QExternalTest::QtCore); |
1720 test.setQtModules(QTest::QExternalTest::QtCore); |
1722 test.setExtraProgramSources(QStringList() << SRCDIR "forwarddeclared.cpp"); |
1721 test.setExtraProgramSources(QStringList() << SRCDIR "forwarddeclared.cpp"); |
1723 test.setProgramHeader( |
1722 test.setProgramHeader( |
1724 "#define QT_SHAREDPOINTER_TRACK_POINTERS\n" |
1723 "#define QT_SHAREDPOINTER_TRACK_POINTERS\n" |
|
1724 "#define QT_DEBUG\n" |
1725 "#include <QtCore/qsharedpointer.h>\n" |
1725 "#include <QtCore/qsharedpointer.h>\n" |
1726 "#include <QtCore/qcoreapplication.h>\n" |
1726 "#include <QtCore/qcoreapplication.h>\n" |
1727 "\n" |
1727 "\n" |
1728 "struct Data { int i; };\n" |
1728 "struct Data { int i; };\n" |
1729 "struct DerivedData: public Data { int j; };\n" |
1729 "struct DerivedData: public Data { int j; };\n" |