Commit 067b4a9
committed
Fix segfault while running tests on macOS
The tests run in a different order on macOS than Linux, which happens to
result in this segfault.
The problem is that `test_compressed_grid` leaves some stuff behind in
`mutable_device().logical_block_types`, which have `pb_type` set to
`nullptr`. This then breaks `test_connection_router`'s call to
`XmlReadArch`, since it assumes that all of the logical block types are
ones that it created, all of which either have `pb_type` set or are
empty.
Making `test_compressed_grid` clear `logical_block_types` when it's done
fixes that.1 parent 34e2bc6 commit 067b4a9
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| 333 | + | |
| 334 | + | |
333 | 335 | | |
334 | 336 | | |
335 | 337 | | |
0 commit comments