From ba327d8899bb821c22225ce72dadf1ba1efb2a9c Mon Sep 17 00:00:00 2001 From: David Machaj <46852402+dmachaj@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:47:48 -0800 Subject: [PATCH] It helps if the project is actually part of the build when getting build results --- .github/workflows/ci.yml | 2 +- .gitignore | 1 + build_test_all.cmd | 1 + run_tests.cmd | 1 + test/stress_test/main.cpp | 4 ---- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f99be8fb..c3f3bf26a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,7 +97,7 @@ jobs: compiler: [MSVC, clang-cl] arch: [x86, x64, arm64] config: [Debug, Release] - test_exe: [test, test_cpp20, test_cpp20_no_sourcelocation, test_fast, test_slow, test_old, test_module_lock_custom, test_module_lock_none] + test_exe: [test, test_cpp20, test_cpp20_no_sourcelocation, test_fast, test_slow, test_old, test_module_lock_custom, test_module_lock_none, stress_test] exclude: - arch: arm64 config: Debug diff --git a/.gitignore b/.gitignore index 9493fdad5..8a95a64fa 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ *.nupkg test*.xml test*_results.txt +stress_test_results.txt test_failures.txt build packages diff --git a/build_test_all.cmd b/build_test_all.cmd index 4372acfd5..b3f2c229e 100644 --- a/build_test_all.cmd +++ b/build_test_all.cmd @@ -36,5 +36,6 @@ call msbuild /m /p:Configuration=%target_configuration%,Platform=%target_platfor call msbuild /m /p:Configuration=%target_configuration%,Platform=%target_platform%,CppWinRTBuildVersion=%target_version% cppwinrt.sln /t:test\test_module_lock_none call msbuild /m /p:Configuration=%target_configuration%,Platform=%target_platform%,CppWinRTBuildVersion=%target_version% cppwinrt.sln /t:test\test_module_lock_none call msbuild /m /p:Configuration=%target_configuration%,Platform=%target_platform%,CppWinRTBuildVersion=%target_version% cppwinrt.sln /t:test\old_tests\test_old +call msbuild /m /p:Configuration=%target_configuration%,Platform=%target_platform%,CppWinRTBuildVersion=%target_version% cppwinrt.sln /t:test\stress_test call run_tests.cmd %target_platform% %target_configuration% diff --git a/run_tests.cmd b/run_tests.cmd index 77d883642..49ad986f2 100644 --- a/run_tests.cmd +++ b/run_tests.cmd @@ -16,6 +16,7 @@ call :run_test test_slow call :run_test test_old call :run_test test_module_lock_custom call :run_test test_module_lock_none +call :run_test stress_test goto :eof :run_test diff --git a/test/stress_test/main.cpp b/test/stress_test/main.cpp index b8d2c2422..66a992392 100644 --- a/test/stress_test/main.cpp +++ b/test/stress_test/main.cpp @@ -9,9 +9,5 @@ int main() winrt::Windows::Foundation::Uri uri{ L"https://www.microsoft.com" }; const auto asString = uri.ToString(); - // Cause the "if constexpr" block to be reachable, possibly triggering a build warning. - winrt::Windows::Networking::Sockets::StreamWebSocket socket{ nullptr }; - socket.Close(1000, L""); - return 0; }