Only run unittests contained directly in the module.

This commit is contained in:
Christian Kamm 2008-12-07 14:12:39 +01:00
parent 0085c9409c
commit fe71199772

View file

@ -604,7 +604,7 @@ void DtoDeclareFunction(FuncDeclaration* fdecl)
} }
} }
if (fdecl->isUnitTestDeclaration()) if (fdecl->isUnitTestDeclaration() && !declareOnly)
gIR->unitTests.push_back(fdecl); gIR->unitTests.push_back(fdecl);
if (!declareOnly) if (!declareOnly)