tests/auto/qsharedpointer/tst_qsharedpointer.cpp
changeset 22 79de32ba3296
parent 18 2f34d5167611
child 30 5dc02b23752f
equal deleted inserted replaced
19:fcece45ef507 22:79de32ba3296
  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"