TESTBED: Get rid of static local variable

It's not only against our coding guidelines, but also breaks running the
mutex test multiple times. It may or may not also be responsible for a
MSVC9 build failure reported on IRC.
This commit is contained in:
Willem Jan Palenstijn 2011-06-03 14:15:39 +02:00
parent 8b3c36cfad
commit b16d6e8bb2

View file

@ -132,7 +132,7 @@ TestExitStatus MiscTests::testMutexes() {
Testsuite::writeOnScreen("Installing mutex", Common::Point(0, 100));
}
static SharedVars sv = {1, 1, true, g_system->createMutex()};
SharedVars sv = {1, 1, true, g_system->createMutex()};
if (g_system->getTimerManager()->installTimerProc(criticalSection, 100000, &sv)) {
g_system->delayMillis(150);