Skip to content

Commit 97125c5

Browse files
committed
Split interactions tests into 6 parts for MSVC heap exhaustion fix
- Change from 3-way split (~1900 lines) to 6-way split (~750-825 lines) - Extract all helper functions into interactions_helpers.hpp - Remove monolithic interactions.cpp in favor of split parts - Each part contains ~27-28 tests - All 164 tests pass on Windows with smaller compilation units
1 parent 82220d9 commit 97125c5

10 files changed

Lines changed: 5423 additions & 9750 deletions

CMakeLists.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ if(FASTMCPP_BUILD_TESTS)
233233
target_link_libraries(fastmcpp_server_patterns PRIVATE fastmcpp_core)
234234
add_test(NAME fastmcpp_server_patterns COMMAND fastmcpp_server_patterns)
235235

236-
# Server interactions split into 3 parts to avoid MSVC heap exhaustion
236+
# Server interactions split into 6 parts to avoid MSVC heap exhaustion
237237
add_executable(fastmcpp_server_interactions_p1 tests/server/interactions_p1.cpp)
238238
target_link_libraries(fastmcpp_server_interactions_p1 PRIVATE fastmcpp_core)
239239
add_test(NAME fastmcpp_server_interactions_p1 COMMAND fastmcpp_server_interactions_p1)
@@ -246,6 +246,18 @@ if(FASTMCPP_BUILD_TESTS)
246246
target_link_libraries(fastmcpp_server_interactions_p3 PRIVATE fastmcpp_core)
247247
add_test(NAME fastmcpp_server_interactions_p3 COMMAND fastmcpp_server_interactions_p3)
248248

249+
add_executable(fastmcpp_server_interactions_p4 tests/server/interactions_p4.cpp)
250+
target_link_libraries(fastmcpp_server_interactions_p4 PRIVATE fastmcpp_core)
251+
add_test(NAME fastmcpp_server_interactions_p4 COMMAND fastmcpp_server_interactions_p4)
252+
253+
add_executable(fastmcpp_server_interactions_p5 tests/server/interactions_p5.cpp)
254+
target_link_libraries(fastmcpp_server_interactions_p5 PRIVATE fastmcpp_core)
255+
add_test(NAME fastmcpp_server_interactions_p5 COMMAND fastmcpp_server_interactions_p5)
256+
257+
add_executable(fastmcpp_server_interactions_p6 tests/server/interactions_p6.cpp)
258+
target_link_libraries(fastmcpp_server_interactions_p6 PRIVATE fastmcpp_core)
259+
add_test(NAME fastmcpp_server_interactions_p6 COMMAND fastmcpp_server_interactions_p6)
260+
249261
add_executable(fastmcpp_server_context_meta tests/server/context_meta.cpp)
250262
target_link_libraries(fastmcpp_server_context_meta PRIVATE fastmcpp_core)
251263
add_test(NAME fastmcpp_server_context_meta COMMAND fastmcpp_server_context_meta)

0 commit comments

Comments
 (0)