[all-commits] [llvm/llvm-project] da601e: [lldb/Test] Assert that no targets or modules rema...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Fri Jun 12 15:18:01 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: da601ea731ece45d8e4d283942f90dce5b2d386a
      https://github.com/llvm/llvm-project/commit/da601ea731ece45d8e4d283942f90dce5b2d386a
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-06-12 (Fri, 12 Jun 2020)

  Changed paths:
    M lldb/bindings/interface/SBModule.i
    M lldb/include/lldb/API/SBModule.h
    M lldb/packages/Python/lldbsuite/test/lldbtest.py
    M lldb/source/API/SBModule.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list