Commit 5adfdaf9 authored by Miikka Heikkinen's avatar Miikka Heikkinen Committed by Qt by Nokia

Fix tst_qquickimageparticle test compilation with Visual Studio

MSVC doesn't support setenv or unsetenv functions, so use
qputenv instead.

Change-Id: Ife4eb056e6c87d23774512c61b13a3ae3d8ac9ce
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent 31467e86
......@@ -69,12 +69,13 @@ void tst_qquickimageparticle::initTestCase()
{
QQmlDataTest::initTestCase();
QUnifiedTimer::instance()->setConsistentTiming(true);
setenv("QML_PARTICLES_DEBUG","please",0);//QQuickImageParticle has several debug statements, with possible pointer dereferences
//QQuickImageParticle has several debug statements, with possible pointer dereferences
qputenv("QML_PARTICLES_DEBUG","please");
}
tst_qquickimageparticle::~tst_qquickimageparticle()
{
unsetenv("QML_PARTICLES_DEBUG");
qputenv("QML_PARTICLES_DEBUG","");
}
void tst_qquickimageparticle::test_basic()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment