From fe71199772659e17e01f98e84fa8562b6662ea26 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Sun, 7 Dec 2008 14:12:39 +0100 Subject: [PATCH] Only run unittests contained directly in the module. --- gen/functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/functions.cpp b/gen/functions.cpp index 7db6b590..3c695645 100644 --- a/gen/functions.cpp +++ b/gen/functions.cpp @@ -604,7 +604,7 @@ void DtoDeclareFunction(FuncDeclaration* fdecl) } } - if (fdecl->isUnitTestDeclaration()) + if (fdecl->isUnitTestDeclaration() && !declareOnly) gIR->unitTests.push_back(fdecl); if (!declareOnly)