Skip to content

Conversation

@eramongodb
Copy link
Contributor

Related to CXX-3180. mingw-w64 chokes on when attempting to compile the collection_mocked.cpp component:

as.exe: src/mongocxx/
test/CMakeFiles/test_driver.dir/Debug/v_noabi/collection_mocked.cpp.obj: too many sections (37098)
Z:\data\tmp\ccuJcb3j.s: Assembler messages:
Z:\data\tmp\ccuJcb3j.s: Fatal error: can't write 183 bytes to section .text of src/mongocxx/test/CMakeFiles/test_driver.dir/Debug/v_noabi/collection_mocked
.cpp.obj: 'file too big'

The single TEST_CASE() in collection_mocked.cpp is huge (~1K lines). This PR splits it into smaller test cases. Section descriptions (e.g. SECTION(name, description)) are removed due to providing dubious value (possibly due to author confusion?).

Tip

Recommend toggling "No Whitespace" when reviewing diffs in this PR.

@eramongodb eramongodb requested a review from kevinAlbs November 18, 2025 16:35
@eramongodb eramongodb self-assigned this Nov 18, 2025
@eramongodb eramongodb requested a review from a team as a code owner November 18, 2025 16:35
@eramongodb eramongodb merged commit 7281666 into mongodb:master Nov 18, 2025
15 of 17 checks passed
@eramongodb eramongodb deleted the cxx-mingw-tests-collection branch November 18, 2025 20:32
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

Successfully merging this pull request may close these issues.

2 participants