HomePhabricator

[lldb/Test] Assert that no targets or modules remain after a test completes.

Authored by JDevlieghere on Jun 12 2020, 3:12 PM.

Description

[lldb/Test] Assert that no targets or modules remain after a test completes.

The reproducer intentionally leak every object allocated during replay,
which means that modules never get orphaned. If this were to happen for
another reason, we might not be testing what we think we are. Assert
that there are no targets left at the end of a test and that the global
module cache is empty in the non-reproducer scenario.

Differential revision: https://reviews.llvm.org/D81612