diff options
Diffstat (limited to 'packages/Python/lldbsuite/test/functionalities/frame-diagnose/inheritance')
3 files changed, 0 insertions, 101 deletions
| diff --git a/packages/Python/lldbsuite/test/functionalities/frame-diagnose/inheritance/Makefile b/packages/Python/lldbsuite/test/functionalities/frame-diagnose/inheritance/Makefile deleted file mode 100644 index 314f1cb2f077..000000000000 --- a/packages/Python/lldbsuite/test/functionalities/frame-diagnose/inheritance/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -LEVEL = ../../../make - -CXX_SOURCES := main.cpp - -include $(LEVEL)/Makefile.rules diff --git a/packages/Python/lldbsuite/test/functionalities/frame-diagnose/inheritance/TestDiagnoseInheritance.py b/packages/Python/lldbsuite/test/functionalities/frame-diagnose/inheritance/TestDiagnoseInheritance.py deleted file mode 100644 index 3d9c893bbd40..000000000000 --- a/packages/Python/lldbsuite/test/functionalities/frame-diagnose/inheritance/TestDiagnoseInheritance.py +++ /dev/null @@ -1,27 +0,0 @@ -""" -Test the output of `frame diagnose` for calling virtual methods -""" - -from __future__ import print_function - -import os -import lldb -from lldbsuite.test.decorators import * -from lldbsuite.test.lldbtest import * -from lldbsuite.test import lldbutil - - -class TestDiagnoseInheritance(TestBase): -    mydir = TestBase.compute_mydir(__file__) - -    @skipUnlessDarwin -    @skipIfDarwinEmbedded  # <rdar://problem/33842388> frame diagnose doesn't work for armv7 or arm64 -    def test_diagnose_inheritance(self): -        TestBase.setUp(self) -        self.build() -        exe = self.getBuildArtifact("a.out") -        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) -        self.runCmd("run", RUN_SUCCEEDED) -        self.expect("thread list", "Thread should be stopped", -                    substrs=['stopped']) -        self.expect("frame diagnose", "Crash diagnosis was accurate", "d") diff --git a/packages/Python/lldbsuite/test/functionalities/frame-diagnose/inheritance/main.cpp b/packages/Python/lldbsuite/test/functionalities/frame-diagnose/inheritance/main.cpp deleted file mode 100644 index 78cac2c89653..000000000000 --- a/packages/Python/lldbsuite/test/functionalities/frame-diagnose/inheritance/main.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include <stdio.h> -#include <stdint.h> - -class A -{ -public: -    A(int a) :  -        m_a(a) -    { -    } -    virtual ~A(){} -    virtual int get2() const { return m_a; } -    virtual int get() const { return m_a; } -protected: -    int m_a;     -}; - -class B : public A -{ -public: -    B(int a, int b) :  -        A(a), -        m_b(b) -    { -    } - -    ~B() override -    { -    } - -    int get2() const override -    { -        return m_b; -    } -    int get() const override -    { -        return m_b; -    }    -             -protected: -    int m_b; -}; - -struct C -{ -    C(int c) : m_c(c){} -    virtual ~C(){} -    int m_c; -}; - -class D : public C, public B -{ -public: -    D(int a, int b, int c, int d) :  -        C(c), -        B(a, b), -        m_d(d) -    { -    } -protected: -    int m_d; -}; -int main (int argc, char const *argv[], char const *envp[]) -{ -    D *good_d = new D(1, 2, 3, 4); -    D *d = nullptr; -    return d->get(); -} - | 
