Skip to content

Commit

Permalink
Fix tst_qquickimageparticle test compilation with Visual Studio
Browse files Browse the repository at this point in the history
MSVC doesn't support setenv or unsetenv functions, so use
qputenv instead.

Change-Id: Ife4eb056e6c87d23774512c61b13a3ae3d8ac9ce
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
  • Loading branch information
Miikka Heikkinen authored and Qt by Nokia committed Mar 15, 2012
1 parent 31467e8 commit 5adfdaf
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -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()
Expand Down

0 comments on commit 5adfdaf

Please sign in to comment.