changeset 830:504a21e81a46

Only run unittests contained directly in the module.
author Christian Kamm <kamm incasoftware de>
date Sun, 07 Dec 2008 14:12:39 +0100
parents 0a31c60a6bc1
children 7e59caf41433
files gen/functions.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gen/functions.cpp	Fri Dec 05 22:01:50 2008 +0100
+++ b/gen/functions.cpp	Sun Dec 07 14:12:39 2008 +0100
@@ -604,7 +604,7 @@
         }
     }
 
-    if (fdecl->isUnitTestDeclaration())
+    if (fdecl->isUnitTestDeclaration() && !declareOnly)
         gIR->unitTests.push_back(fdecl);
 
     if (!declareOnly)