mirror of
https://github.com/tnodir/fort
synced 2024-11-15 10:55:10 +00:00
UI: IocContainer: Don't delete TlsIndex.
Several unit tests can run in parallel.
This commit is contained in:
parent
121619a939
commit
4a75936f97
@ -88,8 +88,10 @@ TEST_F(IocContainerTest, insert)
|
||||
container.setService<IocTest::B>(b);
|
||||
|
||||
ASSERT_EQ(container.resolve<IocTest::A>(), a2);
|
||||
ASSERT_EQ(container.resolve<IocTest::B>(), &b);
|
||||
ASSERT_TRUE(container.pinToThread());
|
||||
ASSERT_EQ(IoC<IocTest::A>(), a2);
|
||||
ASSERT_EQ(IoC<IocTest::B>(), &b);
|
||||
}
|
||||
|
||||
TEST_F(IocContainerTest, setUp)
|
||||
|
@ -22,6 +22,7 @@ void createTlsIndex()
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
void deleteTlsIndex()
|
||||
{
|
||||
if (g_tlsIndex != -1) {
|
||||
@ -29,6 +30,7 @@ void deleteTlsIndex()
|
||||
g_tlsIndex = -1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
@ -37,8 +39,6 @@ IocContainer::IocContainer(QObject *parent) : QObject(parent) { }
|
||||
IocContainer::~IocContainer()
|
||||
{
|
||||
autoDeleteAll();
|
||||
|
||||
deleteTlsIndex();
|
||||
}
|
||||
|
||||
void IocContainer::setObject(int typeId, IocObject *obj, quint8 flags)
|
||||
|
Loading…
Reference in New Issue
Block a user