On Sunday, 22 December 2019 at 15:23:32 UTC, Martin Nowak wrote:
As usual please report any bugs at
https://issues.dlang.org

Not sure, if this is a bug, but --DRT-testmode=run-main seems to have no effect here.

Example:

---
import std.stdio;

unittest
{
    assert(1==1);
}

void main(string[] argv)
{
    writeln("X");
}
---

$> dmd -unittest -g -run test.d
1 unittests passed
$> dmd -unittest --DRT-testmode=run-main -g -run test.d
1 unittests passed

In both cases main is not executed. I thought, in the second one it should...

Reply via email to