we deleted an object on the heap, and afterwards re-accessed the memory through the dangling pointer to verify the deletion actually happened. This works most of the time, unless the memory manager decides to map that page differently -- in which case we just hit random memory contents. A better idea is thus to place this TestFrame object into a statically allocated buffer and invoke the dtor explicitly. This allows us to conduct the test reliably. |
||
|---|---|---|
| .. | ||
| buff-table-test.cpp | ||
| buffer-metadata-key-test.cpp | ||
| buffer-metadata-test.cpp | ||
| buffer-provider-protocol-test.cpp | ||
| calc-stream-test.cpp | ||
| dispatcher-interface-test.cpp | ||
| engine-interface-test.cpp | ||
| node-basic-test.cpp | ||
| node-fabrication-test.cpp | ||
| node-operation-test.cpp | ||
| node-source-test.cpp | ||
| testframe-test.cpp | ||
| testframe.cpp | ||
| testframe.hpp | ||
| tracking-heap-block-provider-test.cpp | ||