From 4bca278d634b63058dae1ccd7ebe3c4b58bb9227 Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Mon, 5 Dec 2011 14:10:01 +1000 Subject: [PATCH] Don't set graphics system at start of test. QApplication::setGraphicsSystem() is a no-op, and even if it wasn't it would be unwise to force a graphics system that isn't guaranteed to be included in the Qt build, without including any logic to skip the test if setting the graphics system failed. Change-Id: Id9a0a87586872088625de7840b5032d0c3cc48a1 Reviewed-by: Rohan McGovern --- .../auto/gui/image/qvolatileimage/tst_qvolatileimage.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/auto/gui/image/qvolatileimage/tst_qvolatileimage.cpp b/tests/auto/gui/image/qvolatileimage/tst_qvolatileimage.cpp index 87389ff355..053160fc7e 100644 --- a/tests/auto/gui/image/qvolatileimage/tst_qvolatileimage.cpp +++ b/tests/auto/gui/image/qvolatileimage/tst_qvolatileimage.cpp @@ -202,12 +202,5 @@ void tst_QVolatileImage::copy() QVERIFY(fuzzyCompareImages(imgA, imgB, 0)); } -int main(int argc, char *argv[]) -{ - QApplication::setGraphicsSystem("openvg"); - QApplication app(argc, argv); - tst_QVolatileImage tc; - return QTest::qExec(&tc, argc, argv); -} - +QTEST_MAIN(tst_QVolatileImage) #include "tst_qvolatileimage.moc"