Skip to content

Commit ba327d8

Browse files
committed
It helps if the project is actually part of the build when getting build results
1 parent 71a15b3 commit ba327d8

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
compiler: [MSVC, clang-cl]
9898
arch: [x86, x64, arm64]
9999
config: [Debug, Release]
100-
test_exe: [test, test_cpp20, test_cpp20_no_sourcelocation, test_fast, test_slow, test_old, test_module_lock_custom, test_module_lock_none]
100+
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]
101101
exclude:
102102
- arch: arm64
103103
config: Debug

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*.nupkg
99
test*.xml
1010
test*_results.txt
11+
stress_test_results.txt
1112
test_failures.txt
1213
build
1314
packages

build_test_all.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@ call msbuild /m /p:Configuration=%target_configuration%,Platform=%target_platfor
3636
call msbuild /m /p:Configuration=%target_configuration%,Platform=%target_platform%,CppWinRTBuildVersion=%target_version% cppwinrt.sln /t:test\test_module_lock_none
3737
call msbuild /m /p:Configuration=%target_configuration%,Platform=%target_platform%,CppWinRTBuildVersion=%target_version% cppwinrt.sln /t:test\test_module_lock_none
3838
call msbuild /m /p:Configuration=%target_configuration%,Platform=%target_platform%,CppWinRTBuildVersion=%target_version% cppwinrt.sln /t:test\old_tests\test_old
39+
call msbuild /m /p:Configuration=%target_configuration%,Platform=%target_platform%,CppWinRTBuildVersion=%target_version% cppwinrt.sln /t:test\stress_test
3940

4041
call run_tests.cmd %target_platform% %target_configuration%

run_tests.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ call :run_test test_slow
1616
call :run_test test_old
1717
call :run_test test_module_lock_custom
1818
call :run_test test_module_lock_none
19+
call :run_test stress_test
1920
goto :eof
2021

2122
:run_test

test/stress_test/main.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,5 @@ int main()
99
winrt::Windows::Foundation::Uri uri{ L"https://www.microsoft.com" };
1010
const auto asString = uri.ToString();
1111

12-
// Cause the "if constexpr" block to be reachable, possibly triggering a build warning.
13-
winrt::Windows::Networking::Sockets::StreamWebSocket socket{ nullptr };
14-
socket.Close(1000, L"");
15-
1612
return 0;
1713
}

0 commit comments

Comments
 (0)