Check printing a stack-located value.
(gdb, expr, expected)
| 227 | |
| 228 | |
| 229 | def check_stack_repr(gdb, expr, expected): |
| 230 | """ |
| 231 | Check printing a stack-located value. |
| 232 | """ |
| 233 | s = gdb.print_value(expr) |
| 234 | if isinstance(expected, re.Pattern): |
| 235 | assert expected.match(s), s |
| 236 | else: |
| 237 | assert s == expected |
| 238 | |
| 239 | |
| 240 | def check_heap_repr(gdb, expr, expected): |
no test coverage detected