unittests D2.065.0 window 7

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon May 26 21:03:27 PDT 2014


On 05/26/2014 08:30 PM, Phillip Shelton wrote:

 > When I compile this code with dmd -run ex43.d -w -unittest there is no
 > output.

It is the -run variable. dmd says:

   -run srcfile args...   run resulting program, passing args

So, both -w and -unittest become arguments to your compiled program, not 
to dmd. The following order of command line switches works:

     dmd -w -unittest -run ex43.d

Ali



More information about the Digitalmars-d-learn mailing list