mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 11:28:03 +02:00
Fix for hang on test exit.
This commit is contained in:
parent
e08a0144c2
commit
4c60be4a31
1 changed files with 5 additions and 5 deletions
|
@ -439,8 +439,6 @@ static bool testSerialization(Bitstream::MetadataType metadataType) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static AttributePointer simpleAttribute;
|
|
||||||
|
|
||||||
bool MetavoxelTests::run() {
|
bool MetavoxelTests::run() {
|
||||||
LimitedNodeList::createInstance();
|
LimitedNodeList::createInstance();
|
||||||
|
|
||||||
|
@ -448,7 +446,7 @@ bool MetavoxelTests::run() {
|
||||||
srand(0xBAAAAABE);
|
srand(0xBAAAAABE);
|
||||||
|
|
||||||
// register our test attribute
|
// register our test attribute
|
||||||
simpleAttribute = AttributeRegistry::getInstance()->registerAttribute(new FloatAttribute("simpleAttribute"));
|
AttributePointer testAttribute = AttributeRegistry::getInstance()->registerAttribute(new FloatAttribute("testAttribute"));
|
||||||
|
|
||||||
// check for an optional command line argument specifying a single test
|
// check for an optional command line argument specifying a single test
|
||||||
QStringList arguments = this->arguments();
|
QStringList arguments = this->arguments();
|
||||||
|
@ -587,7 +585,8 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
RandomVisitor::RandomVisitor() :
|
RandomVisitor::RandomVisitor() :
|
||||||
MetavoxelVisitor(QVector<AttributePointer>(), QVector<AttributePointer>() << simpleAttribute),
|
MetavoxelVisitor(QVector<AttributePointer>(), QVector<AttributePointer>() <<
|
||||||
|
AttributeRegistry::getInstance()->getAttribute("testAttribute")),
|
||||||
leafCount(0) {
|
leafCount(0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -815,7 +814,8 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
MutateVisitor::MutateVisitor() :
|
MutateVisitor::MutateVisitor() :
|
||||||
MetavoxelVisitor(QVector<AttributePointer>(), QVector<AttributePointer>() << simpleAttribute),
|
MetavoxelVisitor(QVector<AttributePointer>(), QVector<AttributePointer>() <<
|
||||||
|
AttributeRegistry::getInstance()->getAttribute("testAttribute")),
|
||||||
_mutationsRemaining(randIntInRange(2, 4)) {
|
_mutationsRemaining(randIntInRange(2, 4)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue