Replace QTEST_APPLESS_MAIN with QTEST_MAIN in tests using QProcess
authorRohan McGovern <rohan.mcgovern@nokia.com>
Tue, 5 Jun 2012 04:03:35 +0000 (14:03 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 5 Jun 2012 04:12:20 +0000 (06:12 +0200)
QProcess requires an application object to be created in order to work
correctly on Windows.

Task-number: QTBUG-26023
Task-number: QTBUG-26024
Change-Id: Ifa90946262bc7e2a7df6b6aad54e10b54473fc97
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
tests/auto/tools/moc/tst_moc.cpp
tests/auto/tools/rcc/tst_rcc.cpp
tests/auto/tools/uic/tst_uic.cpp

index 1bf016d..d29e42c 100644 (file)
@@ -1920,6 +1920,6 @@ void tst_Moc::redefinedNames()
 }
 
 
-QTEST_APPLESS_MAIN(tst_Moc)
+QTEST_MAIN(tst_Moc)
 #include "tst_moc.moc"
 
index d0806bd..138a7ff 100644 (file)
@@ -361,6 +361,6 @@ void tst_rcc::cleanupTestCase()
         QFile::remove(entry.absoluteFilePath());
 }
 
-QTEST_APPLESS_MAIN(tst_rcc)
+QTEST_MAIN(tst_rcc)
 
 #include "tst_rcc.moc"
index f77d71e..f78d2e5 100644 (file)
@@ -210,5 +210,5 @@ QString tst_uic::workingDir() const
     return QDir::cleanPath(SRCDIR);
 }
 
-QTEST_APPLESS_MAIN(tst_uic)
+QTEST_MAIN(tst_uic)
 #include "tst_uic.moc"