[lldb/DWARF/test] Freshen up debug_names tests
authorPavel Labath <pavel@labath.sk>
Wed, 15 Jan 2020 11:17:35 +0000 (12:17 +0100)
committerPavel Labath <pavel@labath.sk>
Thu, 16 Jan 2020 15:25:49 +0000 (16:25 +0100)
commit15a6df52efaa74308bfdcd03718a84ac893b40d8
treecc1e540ba8d51c7f4841f83aea46327936311243
parentc24cf97960827fa4993c399dc3f0be5a5376d9e7
[lldb/DWARF/test] Freshen up debug_names tests

These tests used "clang -mllvm -accel-tables=Dwarf" as a way to
guarantee that clang will emit the debug_names table. Unfortunately,
a change it clang made that insufficient (-gpubnames is required now
too), which rendered these tests ineffective. Since lldb automatically
falls back to the manual index, the tests didn't fail and this change
went largely unnoticed.

This patch updates the tests to really use debug_names (-gdwarf-5
-gpubnames) is the combination that works now, and it adds additional
checks to ensure the section is actually emitted.

Fortunately, no regressions crept in while these tests were disabled.
12 files changed:
lldb/packages/Python/lldbsuite/test/lang/c/forward/TestForwardDeclaration.py
lldb/test/Shell/SymbolFile/DWARF/debug-names-compressed.cpp
lldb/test/Shell/SymbolFile/DWARF/dwarf5-index-is-used.cpp
lldb/test/Shell/SymbolFile/DWARF/dwarf5-partial-index.cpp
lldb/test/Shell/SymbolFile/DWARF/find-basic-function.cpp
lldb/test/Shell/SymbolFile/DWARF/find-basic-namespace.cpp
lldb/test/Shell/SymbolFile/DWARF/find-basic-type.cpp
lldb/test/Shell/SymbolFile/DWARF/find-basic-variable.cpp
lldb/test/Shell/SymbolFile/DWARF/find-function-regex.cpp
lldb/test/Shell/SymbolFile/DWARF/find-method.cpp
lldb/test/Shell/SymbolFile/DWARF/find-variable-dwo.cpp
lldb/test/Shell/SymbolFile/DWARF/find-variable-file.cpp