andrey-zherikov / argparse

Parser for command-line arguments
https://andrey-zherikov.github.io/argparse/
Boost Software License 1.0
30 stars 6 forks source link

Coverage analysis ignores code executed at CTFE #126

Open SirNickolas opened 9 months ago

SirNickolas commented 9 months ago

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

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

andrey-zherikov commented 8 months ago

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.

SirNickolas commented 8 months ago

Sorry, should have checked myself.

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