Checks authored rock geometry, allocation budgets and patch lifetime.
Subsystem: Vehicles, cockpit geometry and surface physics
Fixture/harness: rockmemorytests
Setup: The standalone RockMemoryTests harness owns the inputs, local helpers and assertion sink used by the case files below.
Build/entry point: Tests/RockMemoryTests.vcxproj; declared configurations: Debug|Win32, Release|Win32.
RockMemoryTests.cpp
Source: Tests/RockMemoryTests.cpp
Load Mesh
Fixture: Rock Memory tests
Case symbol: LoadMesh
Source: Tests/RockMemoryTests.cpp:88
- Test
- Load Mesh: rock component asset available; read actual rock component sizes.
Source check messages (including original failure wording)
-
rock component asset available
-
read actual rock component sizes
Exercise
Fixture: Rock Memory tests
Case symbol: Exercise
Source: Tests/RockMemoryTests.cpp:98
- Test
- Exercise: allocate only emitted rock vertices; rock placement, colors, counts and RNG remain unchanged; allocation failure leaves no drawable patch.
Source check messages (including original failure wording)
-
rock patch generated
-
legacy primitive cap preserved
-
allocate only emitted rock vertices
-
rock placement, colors, counts and RNG remain unchanged
-
allocation failure leaves no drawable patch
-
lock failure releases patch storage
-
water clears the previous patch
-
RTS exclusion preserved
-
device loss releases all local rock and curb buffers
-
cleanup clears geometry metadata
Entry-point checks
Fixture: Rock Memory tests
Case symbol: main
Source: Tests/RockMemoryTests.cpp:140
- Test
- Checks authored rock geometry, allocation budgets and patch lifetime. This entry point also runs the associated check groups.
Source check messages (including original failure wording)