# HG changeset patch # User Christian Kamm # Date 1228655559 -3600 # Node ID 504a21e81a46931dec983be9d5afb379769cca7c # Parent 0a31c60a6bc100396b59501f81aaf892f53556f6 Only run unittests contained directly in the module. diff -r 0a31c60a6bc1 -r 504a21e81a46 gen/functions.cpp --- 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)