Skip to content

Commit

Permalink
It helps if the project is actually part of the build when getting bu…
Browse files Browse the repository at this point in the history
…ild results
  • Loading branch information
dmachaj committed Nov 20, 2024
1 parent 71a15b3 commit ba327d8
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*.nupkg
test*.xml
test*_results.txt
stress_test_results.txt
test_failures.txt
build
packages
Expand Down
1 change: 1 addition & 0 deletions build_test_all.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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%
1 change: 1 addition & 0 deletions run_tests.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions test/stress_test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit ba327d8

Please sign in to comment.