Skip to content

voxels_test: replace cvcapp singleton with fixture-local cvc::app#12

Merged
transfix merged 1 commit into
masterfrom
cvc-singleton/voxels-test
May 2, 2026
Merged

voxels_test: replace cvcapp singleton with fixture-local cvc::app#12
transfix merged 1 commit into
masterfrom
cvc-singleton/voxels-test

Conversation

@transfix
Copy link
Copy Markdown
Owner

@transfix transfix commented May 1, 2026

Six call sites in voxels_test.cpp's threading tests used the cvcapp singleton even though the test fixture exposes a local cvc::app ctx member. Replace cvcapp.X(...) with ctx.X(...) so the threading exercises the same per-fixture app the rest of the test uses.

- unsigned int original_pool_size = cvcapp.getThreadPoolSize();
+ unsigned int original_pool_size = ctx.getThreadPoolSize();

Validation

  • Linux Debug build clean
  • ctest -R VoxelsTest -j4: 108/108 passed

Part of cvc-singleton-removal-plan.md (PR 8, voxels piece).
Independent of #11; can land in any order.

The test fixture already exposes a local cvc::app member named `ctx`;
six call sites in the threading tests still used the cvcapp singleton.
Replace cvcapp.X(...) with ctx.X(...) so the threading tests exercise
the same per-fixture app the data flows through.

Linux Debug build clean; ctest -R VoxelsTest 108/108 passed.

Part of cvc-singleton-removal-plan.md (PR 8 — voxels piece).
@transfix transfix merged commit 61e978a into master May 2, 2026
19 checks passed
@transfix transfix deleted the cvc-singleton/voxels-test branch May 2, 2026 06:46
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.

1 participant