Boost logo

Boost-Build :

Subject: Re: [Boost-build] Recent commits broke the link-fail testing on Windows
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2018-01-15 15:36:47


AMDG

On 01/14/2018 02:25 PM, Antony Polukhin via Boost-build wrote:
> I've started receiving "Tests failed" warnings from CI recently.
> Here's an example:
> https://ci.appveyor.com/project/apolukhin/type-index/build/1.64.45-develop
>
> All the the tests passed (including tests that must fail to link), but
> there's a message "...failed updating 2 targets..." and return code is
> not 0.
>
> Looks like the issue is related to link-fail targets in tests
> https://github.com/boostorg/type_index/blob/develop/test/Jamfile.v2#L57-L59
>

As far as I can make out, Boost.Build is working correctly:

$ b2 link_fail_nortti_rtti -d2
...
"testing_crossmodule.cpp"
-Fo"..\..\..\bin.v2\libs\type_index\test\link_fail_nortti_rtti.test\msvc-14.0\debug\threading-multi\testing_crossmodule.obj"
   -TP /Z7 /Od /Ob0 /W3 /GR /MDd /Zc:forScope /Zc:wchar_t /wd4675 /EHs
/GR- -c
-DBOOST_ALL_NO_LIB=1
...
cl : Command line warning D9025 : overriding '/GR' with '/GR-'
...
"test_lib.cpp"
-Fo"..\..\..\bin.v2\libs\type_index\test\msvc-14.0\debug\threading-multi\test_lib_rtti-obj.obj"
   -TP /Z7 /Od /Ob0 /W3 /GR /MDd /Zc:forScope /Zc:wchar_t /wd4675 /EHs -c
-DBOOST_ALL_NO_LIB=1
...
msvc.link
..\..\..\bin.v2\libs\type_index\test\link_fail_nortti_rtti.test\msvc-14.0\debug\threading-multi\link_fail_nortti_rtti.exe
[no error messages]
...failed msvc.link
..\..\..\bin.v2\libs\type_index\test\link_fail_nortti_rtti.test\msvc-14.0\debug\threading-multi\link_fail_nortti_rtti.exe...

Likewise, for link_fail_rtti_nortti, /GR- -DNO_RTTI vs. /GR
seem to be passed correctly.

Just to validate, I changed link-fail to link and it passed.

In Christ,
Steven Watanabe


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk