[llvm-debuginfo-analyzer] (08/09) - ELF Reader
The unitest and test cases are platform dependent (x86_64) causing failures in: https://lab.llvm.org/buildbot/#/builders/245/builds/146 https://lab.llvm.org/buildbot/#/builders/188/builds/21397 No available targets are compatible with triple "x86_64-unknown-unknown". Added: - ';REQUIRES: x86-registered-target' to the LIT tests. - Code to check if the target 'Triple::x86_64' is supported to the unittest case.
This commit is contained in:
parent
97dcbd124d
commit
d858447584
|
@ -1,3 +1,5 @@
|
|||
; REQUIRES: x86-registered-target
|
||||
|
||||
; Test case 1 - General options
|
||||
|
||||
; test.cpp
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
; REQUIRES: x86-registered-target
|
||||
|
||||
; Test case 1 - General options.
|
||||
|
||||
; test.cpp
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
; REQUIRES: x86-registered-target
|
||||
|
||||
; Test case 1 - General options
|
||||
|
||||
; test.cpp
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
; REQUIRES: x86-registered-target
|
||||
|
||||
; Test case 2 - Assembler instructions.
|
||||
|
||||
; hello-world.cpp
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
; REQUIRES: x86-registered-target
|
||||
|
||||
; Test case 3 - Incorrect lexical scope for typedef.
|
||||
|
||||
; pr-44884.cpp
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
; REQUIRES: x86-registered-target
|
||||
|
||||
; Test case 4 - Missing nested enumerations.
|
||||
|
||||
; pr-46466.cpp
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
; REQUIRES: x86-registered-target
|
||||
|
||||
; Test case 5 - Incorrect lexical scope variable.
|
||||
|
||||
; pr-43860.cpp
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
; REQUIRES: x86-registered-target
|
||||
|
||||
; Test case 6 - Full logical view
|
||||
|
||||
; test.cpp
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
; REQUIRES: x86-registered-target
|
||||
|
||||
; Ignored attributes with DW_FORM_implicit_const.
|
||||
; https://github.com/llvm/llvm-project/issues/57040
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
; REQUIRES: x86-registered-target
|
||||
|
||||
; Incorrect function matching during comparison.
|
||||
; https://github.com/llvm/llvm-project/issues/57040
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
; REQUIRES: x86-registered-target
|
||||
|
||||
; * Added incorrect logical instructions for: --print=lines,instructions
|
||||
; 'bar' and 'foo' showing extra instruction from compiler generated functions:
|
||||
; '_cxx_global_var_init' and '_GLOBAL_sub_l_suite_lexical_01.cpp'
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include "llvm/DebugInfo/LogicalView/Core/LVSymbol.h"
|
||||
#include "llvm/DebugInfo/LogicalView/Core/LVType.h"
|
||||
#include "llvm/DebugInfo/LogicalView/LVReaderHandler.h"
|
||||
#include "llvm/MC/TargetRegistry.h"
|
||||
#include "llvm/Support/COM.h"
|
||||
#include "llvm/Support/InitLLVM.h"
|
||||
#include "llvm/Support/ScopedPrinter.h"
|
||||
|
@ -331,6 +332,16 @@ TEST(LogicalViewTest, ELFReader) {
|
|||
|
||||
SmallString<128> InputsDir = unittest::getInputFileDirectory(TestMainArgv0);
|
||||
|
||||
// This test requires a x86-registered-target
|
||||
Triple TT;
|
||||
TT.setArch(Triple::x86_64);
|
||||
TT.setVendor(Triple::UnknownVendor);
|
||||
TT.setOS(Triple::UnknownOS);
|
||||
|
||||
std::string TargetLookupError;
|
||||
if (!TargetRegistry::lookupTarget(std::string(TT.str()), TargetLookupError))
|
||||
return;
|
||||
|
||||
// Logical elements general properties and selection.
|
||||
elementProperties(InputsDir);
|
||||
elementSelection(InputsDir);
|
||||
|
|
Loading…
Reference in New Issue