Check printing a heap-located value, given its address.
(gdb, expr, expected)
| 238 | |
| 239 | |
| 240 | def check_heap_repr(gdb, expr, expected): |
| 241 | """ |
| 242 | Check printing a heap-located value, given its address. |
| 243 | """ |
| 244 | s = gdb.print_value(f"*{expr}") |
| 245 | # GDB may prefix the value with an address or type specification |
| 246 | if s != expected: |
| 247 | assert s.endswith(f" {expected}") |
| 248 | |
| 249 | |
| 250 | def test_status(gdb_arrow): |
no test coverage detected