diff -r 56cd8111b7f7 -r 41300fa6a67c tests/qtp/qtp_svgviewer/main.cpp --- a/tests/qtp/qtp_svgviewer/main.cpp Tue Jan 26 12:42:25 2010 +0200 +++ b/tests/qtp/qtp_svgviewer/main.cpp Tue Feb 02 00:43:10 2010 +0200 @@ -41,23 +41,14 @@ #include #include +#include +#include + #ifndef QT_NO_OPENGL #include #endif #include "mainwindow.h" - -int main(int argc, char **argv) -{ - Q_INIT_RESOURCE(qtp_svgviewer); - - QApplication app(argc, argv); +#include "autotest.h" - MainWindow window; - if (argc == 2) - window.openFile(argv[1]); - else - window.openFile(":/files/bubbles.svg"); - window.show(); - return app.exec(); -} +QTEST_MAIN(autoTest)