Description
Issue Description:
Found Boost\libs\graph failed to build due to run weighted_matching_test2.exe on Windows with MSVC, this issue can be reproduced on 6f50c3c commit of Boost master branch. Could you please take a look? Thanks in advance.
Reproduce Steps:
- git clone -c core.autocrlf=true --recursive https://github.com/boostorg/boost.git f:\Boost
- open a VS 2022 x64 command prompt and browse to f:\Boost
- .\bootstrap
- .\b2 headers variant=debug--build-dir=C:\gitP\boostorg\boost\amd64 address-model=64 architecture=x86
- .\b2 variant=debug--build-dir=C:\gitP\boostorg\boost\amd64 address-model=64 architecture=x86
- .\b2 -j16 variant=debug --build-dir=C:\gitP\boostorg\boost\amd64 libs\graph\test address-model=64
ErrorMessage:
...
msvc.link C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test2.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test2.exe
testing.capture-output C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.run
====== BEGIN OUTPUT ======
libs\graph\test\weighted_matching_test.cpp(142): test 'in_file.good()' failed in function 'int __cdecl main(int,char *[])'
1 error detected.
EXIT STATUS: 1
====== END OUTPUT ======
"C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.exe" > "C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.output" 2>&1
set status=%ERRORLEVEL%
echo. >> "C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.output"
echo EXIT STATUS: %status% >> "C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.output"
if %status% EQU 0 (
copy "C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.output" "C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.run" >NUL
)
set verbose=0
if %status% NEQ 0 (
set verbose=1
)
if %verbose% EQU 1 (
echo ====== BEGIN OUTPUT ======
type "C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.output"
echo ====== END OUTPUT ======
)
exit %status%
...failed testing.capture-output C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.run...