aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
diff options
context:
space:
mode:
authorIgor Kudrin <ikudrin@accesssoftek.com>2021-12-22 18:52:49 +0700
committerIgor Kudrin <ikudrin@accesssoftek.com>2021-12-22 18:52:49 +0700
commitf5907ea1c0debddac72f5e4d15fc7fed30e36a72 (patch)
tree7e38649194ac527310d6decaf98ebebaf918a3de /llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
parent2e11e8885c68f7ec6e1f2699a9461708d29ec4df (diff)
downloadllvm-f5907ea1c0debddac72f5e4d15fc7fed30e36a72.zip
llvm-f5907ea1c0debddac72f5e4d15fc7fed30e36a72.tar.gz
llvm-f5907ea1c0debddac72f5e4d15fc7fed30e36a72.tar.bz2
[unittest][DebugInfo/DWARF] Do not report skipped tests as passed
This is similar to what we have already done to some other tests. See D102643, D102710, D102754. Differential Revision: https://reviews.llvm.org/D116108
Diffstat (limited to 'llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp')
-rw-r--r--llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
index 44f438e..ddd057a 100644
--- a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
+++ b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
@@ -44,7 +44,7 @@ template <uint16_t Version, class AddrType, class RefAddrType>
void TestAllForms() {
Triple Triple = getDefaultTargetTripleForAddrSize(sizeof(AddrType));
if (!isConfigurationSupported(Triple))
- return;
+ GTEST_SKIP();
// Test that we can decode all DW_FORM values correctly.
const AddrType AddrValue = (AddrType)0x0123456789abcdefULL;
@@ -478,7 +478,7 @@ TEST(DWARFDebugInfo, TestDWARF32Version5Addr8AllForms) {
template <uint16_t Version, class AddrType> void TestChildren() {
Triple Triple = getDefaultTargetTripleForAddrSize(sizeof(AddrType));
if (!isConfigurationSupported(Triple))
- return;
+ GTEST_SKIP();
// Test that we can decode DW_FORM_ref_addr values correctly in DWARF 2 with
// 4 byte addresses. DW_FORM_ref_addr values should be 4 bytes when using
@@ -620,7 +620,7 @@ TEST(DWARFDebugInfo, TestDWARF32Version4Addr8Children) {
template <uint16_t Version, class AddrType> void TestReferences() {
Triple Triple = getDefaultTargetTripleForAddrSize(sizeof(AddrType));
if (!isConfigurationSupported(Triple))
- return;
+ GTEST_SKIP();
// Test that we can decode DW_FORM_refXXX values correctly in DWARF.
auto ExpectedDG = dwarfgen::Generator::create(Triple, Version);
@@ -882,7 +882,7 @@ TEST(DWARFDebugInfo, TestDWARF32Version4Addr8References) {
template <uint16_t Version, class AddrType> void TestAddresses() {
Triple Triple = getDefaultTargetTripleForAddrSize(sizeof(AddrType));
if (!isConfigurationSupported(Triple))
- return;
+ GTEST_SKIP();
// Test the DWARF APIs related to accessing the DW_AT_low_pc and
// DW_AT_high_pc.
@@ -1070,7 +1070,7 @@ TEST(DWARFDebugInfo, TestStringOffsets) {
#endif
Triple Triple = getNormalizedDefaultTargetTriple();
if (!isConfigurationSupported(Triple))
- return;
+ GTEST_SKIP();
const char *String1 = "Hello";
const char *String2 = "World";
@@ -1134,7 +1134,7 @@ TEST(DWARFDebugInfo, TestStringOffsets) {
TEST(DWARFDebugInfo, TestEmptyStringOffsets) {
Triple Triple = getNormalizedDefaultTargetTriple();
if (!isConfigurationSupported(Triple))
- return;
+ GTEST_SKIP();
const char *String1 = "Hello";
@@ -1163,7 +1163,7 @@ TEST(DWARFDebugInfo, TestEmptyStringOffsets) {
TEST(DWARFDebugInfo, TestRelations) {
Triple Triple = getNormalizedDefaultTargetTriple();
if (!isConfigurationSupported(Triple))
- return;
+ GTEST_SKIP();
// Test the DWARF APIs related to accessing the DW_AT_low_pc and
// DW_AT_high_pc.
@@ -1350,7 +1350,7 @@ TEST(DWARFDebugInfo, TestDWARFDie) {
TEST(DWARFDebugInfo, TestChildIterators) {
Triple Triple = getNormalizedDefaultTargetTriple();
if (!isConfigurationSupported(Triple))
- return;
+ GTEST_SKIP();
// Test the DWARF APIs related to iterating across the children of a DIE using
// the DWARFDie::iterator class.
@@ -1459,7 +1459,7 @@ TEST(DWARFDebugInfo, TestEmptyChildren) {
TEST(DWARFDebugInfo, TestAttributeIterators) {
Triple Triple = getNormalizedDefaultTargetTriple();
if (!isConfigurationSupported(Triple))
- return;
+ GTEST_SKIP();
// Test the DWARF APIs related to iterating across all attribute values in a
// a DWARFDie.
@@ -1521,7 +1521,7 @@ TEST(DWARFDebugInfo, TestAttributeIterators) {
TEST(DWARFDebugInfo, TestFindRecurse) {
Triple Triple = getNormalizedDefaultTargetTriple();
if (!isConfigurationSupported(Triple))
- return;
+ GTEST_SKIP();
uint16_t Version = 4;
auto ExpectedDG = dwarfgen::Generator::create(Triple, Version);
@@ -1735,7 +1735,7 @@ TEST(DWARFDebugInfo, TestDwarfToFunctions) {
TEST(DWARFDebugInfo, TestFindAttrs) {
Triple Triple = getNormalizedDefaultTargetTriple();
if (!isConfigurationSupported(Triple))
- return;
+ GTEST_SKIP();
// Test the DWARFDie::find() and DWARFDie::findRecursively() that take an
// ArrayRef<dwarf::Attribute> value to make sure they work correctly.
@@ -1798,7 +1798,7 @@ TEST(DWARFDebugInfo, TestFindAttrs) {
TEST(DWARFDebugInfo, TestImplicitConstAbbrevs) {
Triple Triple = getNormalizedDefaultTargetTriple();
if (!isConfigurationSupported(Triple))
- return;
+ GTEST_SKIP();
uint16_t Version = 5;
auto ExpectedDG = dwarfgen::Generator::create(Triple, Version);
@@ -1923,7 +1923,7 @@ TEST(DWARFDebugInfo, TestImplicitConstAbbrevs) {
TEST(DWARFDebugInfo, TestErrorReporting) {
Triple Triple("x86_64-pc-linux");
if (!isConfigurationSupported(Triple))
- return;
+ GTEST_SKIP();
auto ExpectedDG = dwarfgen::Generator::create(Triple, 4 /*DwarfVersion*/);
ASSERT_THAT_EXPECTED(ExpectedDG, Succeeded());