|
|
пре 5 дана | |
|---|---|---|
| .. | ||
| fixtures | пре 5 дана | |
| CMakeLists.txt | пре 5 дана | |
| README.md | пре 5 дана | |
| socket_row_relocation_test.cpp | пре 5 дана | |
Run without Wine or the game:
cmake -S tests -B /tmp/sunrise-portable-tests
cmake --build /tmp/sunrise-portable-tests
ctest --test-dir /tmp/sunrise-portable-tests --output-on-failure
The fixture contains 71 original general/leg member rows and 57 opaque condition records captured from the Arrivals build on 2026-09-04, before relocation. Each 64-byte record contains the 32-byte member followed by its 32-byte condition allocation (zero for an empty condition). The first 19 members are general; the remaining 52 are legs. Original relative offsets are deliberately retained so the test detects the shallow-copy bug. There are no account records or absolute process addresses.
The test uses the production relocation header. It checks membership/order, payload preservation, relocation to another allocation, and rejection of bad pointers, substituted conditions, duplicates, unexpected shapes, insufficient storage, and misalignment. Assertions remain enabled in Release.