[phobos] Unittest errors on windows with latest phobos sources

Walter Bright walter at digitalmars.com
Tue Jul 6 10:31:40 PDT 2010



Sean Kelly wrote:
>
>
> How about this... the unittest handler only returns an error code and if it's nonzero then the app won't run.  That's consistent with the pre-assert change behavior.  The difference being that even if the unittests are successful, to prevent the app from running, a non-zero error should be returned.  It's been so long since I originally implemented this (it was done for Gregor when I was working on Tango) that I don't recall the exact use case he presented, but it seems reasonable that if you run an app and it runs some tests but doesn't actually execute then the return value should be nonzero, even if all the tests succeed.  What do you think?
>
>   

I don't see the point in doing anything more complicated than:

   run unit tests
    if (any unit tests failed)
           exit (1)



More information about the phobos mailing list