using dub and -checkaction=context

Anonymouse zorael at gmail.com
Sun Jan 17 19:27:22 UTC 2021


On Sunday, 17 January 2021 at 15:41:45 UTC, Steven Schveighoffer 
wrote:
> I'm trying to run unittests using `dub test`, and I wanted to 
> use the new -checkaction=context feature to avoid having to 
> instrument my unittests to print out the string comparison 
> failure that's happening.
>
> But I tried adding this to my dub.sdl file:
>
> dflags "-checkaction=context" platform="dmd"
>
> But now I get linker errors:
>
> /home/steves/.dub/packages/vibe-core-1.10.1/vibe-core/source/vibe/appmain.d:(.text._D3std8typecons__T10RefCountedTSQBe9container5array__T5ArrayTS4vibe4core4sync18LocalTaskSemaphore12ThreadWaiterZQCg7PayloadVEQEtQEs24RefCountedAutoInitializei0ZQFm6__dtorMFNaNbNiZv[_D3std8typecons__T10RefCountedTSQBe9container5array__T5ArrayTS4vibe4core4sync18LocalTaskSemaphore12ThreadWaiterZQCg7PayloadVEQEtQEs24RefCountedAutoInitializei0ZQFm6__dtorMFNaNbNiZv]+0x5c): undefined reference to `_D4core8internal7dassert__T14_d_assert_failVAyaa1_3eTmTiZQBeFNaNbNiNfKxmxiZQBf'

https://issues.dlang.org/show_bug.cgi?id=19937 ? Slightly 
different error message though.


More information about the Digitalmars-d-learn mailing list