Skip to content

Cpprestsdk failed to run run "httpclient_test" test on release and debug configuration with MSVC on windows x86 and x64 #1689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rachelhe123 opened this issue Mar 3, 2022 · 1 comment

Comments

@rachelhe123
Copy link

Hi All,

The MSVC team recently test Cpprestsdk project failed to run "httpclient_test" test on release and debug configuration on Windows_x86 and windows_x64. Below are details of this issue:

Describe the bug
Cpprestsdk failed to run run "httpclient_test" test on release and debug configuration with MSVC on windows x86 and x64. Could you please help look at this issue or provide some workarounds? Thanks in advance.

Error message
**** outside_tests:server_hostname_host_override_after_upgrade FAILED ****
Finished running all 206 tests.
Took 56066ms
Start 2: httplistener_test
2/8 Test #2: httplistener_test ................ Passed 6.92 sec
Start 3: json_test
3/8 Test #3: json_test ........................ Passed 0.07 sec
Start 4: pplx_test
4/8 Test #4: pplx_test ........................ Passed 0.85 sec
Start 5: streams_test
5/8 Test #5: streams_test ..................... Passed 3.29 sec
Start 6: uri_test
6/8 Test #6: uri_test ......................... Passed 0.06 sec
Start 7: utils_test
7/8 Test #7: utils_test ....................... Passed 0.07 sec
Start 8: websocketsclient_test
8/8 Test #8: websocketsclient_test ............ Passed 9.96 sec

88% tests passed, 1 tests failed out of 8

Total Test time (real) = 193.32 sec

The following tests FAILED:
1 - httpclient_test (Failed)
Errors while running CTest

Expected behavior
For Cpprestsdk x86 and x64, "httpclient_test" test should be run pass on the windows.

To Reproduce on Windows

  1. git clone https://github.com/microsoft/cpprestsdk F:\gitP\microsoft\cpprestsdk
  2. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64
  3. cd F:\gitP\microsoft\cpprestsdk\vcpkg
  4. bootstrap-vcpkg.bat 2>&1
  5. vcpkg.exe install --recurse openssl boost-system boost-date-time boost-regex boost-interprocess websocketpp brotli --triplet x64-windows --clean-after-build 2>&1
  6. cd F:\gitP\microsoft\cpprestsdk\build_amd64
  7. cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=F:\gitP\microsoft\cpprestsdk\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows .. 2>&1
  8. msbuild /m /p:Platform=x64 /p:Configuration=Debug cpprestsdk-root.sln /t:Rebuild 2>&1
  9. cd F:\gitP\microsoft\cpprestsdk\build_amd64\Release
  10. msbuild /m /p:Platform=x64 /p:Configuration=Debug cpprestsdk.sln /t:Rebuild 2>&1
  11. cd F:\gitP\microsoft\cpprestsdk\build_amd64
  12. ctest --build-config Debug --output-on-failure 2>&1
  13. cd F:\gitP\microsoft\cpprestsdk\build_amd64\Release
  14. ctest --build-config Debug --output-on-failure 2>&1

Setup
VS 2019 + Windows Server 2019

Additional context
test logs
test.log
test.log.2.txt
test.log.4.txt

@rachelhe123
Copy link
Author

Due to http://198.35.26.96/ server shut down issue blocked "httpclient_test", so closed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant