Unit tests called multiple times?

William squidkidsignup at gmail.com
Fri Apr 12 15:52:50 PDT 2013


I'm compiling a medium-sized project written in D with the 
-unittests flag.  I have some writeln statements in my unit 
tests, for debug purposes, and I've noticed that certain unit 
tests are being run more than once.  Sample output is along these 
lines:

DEBUG: unit test started...
DEBUG: loop found whatever
DEBUG: iteration successful
DEBUG: bar is equal to bar
DEBUG: unit test passed...
DEBUG: unit test started...
DEBUG: loop found whatever
DEBUG: iteration successful
DEBUG: bar is equal to bar
DEBUG: unit test passed...
DEBUG: unit test started...
DEBUG: loop found whatever
DEBUG: iteration successful
DEBUG: bar is equal to bar
DEBUG: unit test passed...

is this standard behavior for DMD?  Is it documented anywhere?  
It's not much of a problem, but it strikes me as rather odd, and 
makes the debug output difficult to read.


More information about the Digitalmars-d mailing list