On Thursday, 26 December 2019 at 10:20:27 UTC, berni44 wrote:
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

DRT switches are runtime switches

./test --DRT-testmode=run-main

What you did was to pass the DRT switch to DMD itself.

-Steve


Reply via email to