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 <rohan.mcgovern@nokia.com>
This commit is contained in:
Jason McDonald 2011-12-05 14:10:01 +10:00 committed by Qt by Nokia
parent 2d8d258f1d
commit 4bca278d63

View File

@ -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"