DMD unittest doesn't work when using visual studio with a "Windows" Subsystem and Winmain combination
Ronnie via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jul 3 01:59:16 PDT 2015
Hi
I added some unittests {} code in a small test app. With a
int main(string[] args){
...
}
unittest {
...
}
and dmd -unittest, everything works fine.
If I make a Windows app with a winmain
int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
lpCmdLine, int nCmdShow) {
...
}
Then the unittests dont run.
Current work around is for me to static if out the winmain code
but it's not ideal once I start to test windows specific
functionality later. Is this just an oversight?
Am running VisualD 0.3.41 and dmd 2.0.67
More information about the Digitalmars-d-learn
mailing list