argparse icon indicating copy to clipboard operation
argparse copied to clipboard

Coverage analysis ignores code executed at CTFE

Open SirNickolas opened this issue 2 years ago • 2 comments

Fix: dub test --build=unittest-cov-ctfe --verbose.

https://dub.pm/package-format-sdl.html#build-types

SirNickolas avatar Nov 19 '23 15:11 SirNickolas

Unfortunately dmd segfaults:

$ dub test --build=unittest-cov-ctfe
             Generating test runner configuration 'argparse-test-library' for 'library' (library).
    Starting Performing "unittest-cov-ctfe" build using /usr/bin/dmd for x86_64.
    Building argparse 1.3.0+commit.30.ga907d08: building configuration [argparse-test-library]
Segmentation fault
Error /usr/bin/dmd failed with exit code 139.

I tried dmd 2.103.1 and 2.104. Also the latest one (2.106.0) is failing in CI as well.

There is no way to fix this issue until compiler is fixed.

andrey-zherikov avatar Dec 18 '23 04:12 andrey-zherikov

Sorry, should have checked myself.

Seems there is a compiler bug to work around. I’ll see if I can track it down.

SirNickolas avatar Dec 18 '23 21:12 SirNickolas