diff --git a/lldb/test/API/lang/cpp/break-on-initializers/TestBreakOnCPP11Initializers.py b/lldb/test/API/lang/cpp/break-on-initializers/TestBreakOnCPP11Initializers.py index 8456a7cae96e..46846b49bb38 100644 --- a/lldb/test/API/lang/cpp/break-on-initializers/TestBreakOnCPP11Initializers.py +++ b/lldb/test/API/lang/cpp/break-on-initializers/TestBreakOnCPP11Initializers.py @@ -13,7 +13,7 @@ import lldbsuite.test.lldbutil as lldbutil from lldbsuite.test.lldbtest import * -class RenameThisSampleTestTestCase(TestBase): +class TestCase(TestBase): mydir = TestBase.compute_mydir(__file__) @@ -24,16 +24,6 @@ class RenameThisSampleTestTestCase(TestBase): self.main_source_file = lldb.SBFileSpec("main.cpp") self.first_initializer_line = line_number("main.cpp", "Set the before constructor breakpoint here") self.second_initializer_line = line_number("main.cpp", "Set the after constructor breakpoint here") - self.sample_test() - - def setUp(self): - # Call super's setUp(). - TestBase.setUp(self) - # Set up your test case here. If your test doesn't need any set up then - # remove this method from your TestCase class. - - def sample_test(self): - """You might use the test implementation in several ways, say so here.""" (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(self, " Set a breakpoint here to get started", self.main_source_file) diff --git a/lldb/test/API/lang/cpp/break-on-initializers/main.cpp b/lldb/test/API/lang/cpp/break-on-initializers/main.cpp index 13117a17940d..a661b2fd6951 100644 --- a/lldb/test/API/lang/cpp/break-on-initializers/main.cpp +++ b/lldb/test/API/lang/cpp/break-on-initializers/main.cpp @@ -1,12 +1,8 @@ -#include -#include - class Trivial { public: Trivial(int input) : m_int(input) {} private: int m_int; - }; class Foo { @@ -15,17 +11,14 @@ private: public: Foo(int input) { - printf("I have been made!\n"); + ++input; } private: Trivial m_other_trivial = Trivial(200); // Set the after constructor breakpoint here }; -int -main() -{ +int main() { Foo myFoo(10); // Set a breakpoint here to get started return 0; } -