[lldb][NFC] Remove sample test boilerplate from TestBreakOnCPP11Initializers
authorRaphael Isemann <teemperor@gmail.com>
Wed, 19 May 2021 13:22:03 +0000 (15:22 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 19 May 2021 13:22:11 +0000 (15:22 +0200)
lldb/test/API/lang/cpp/break-on-initializers/TestBreakOnCPP11Initializers.py
lldb/test/API/lang/cpp/break-on-initializers/main.cpp

index 8456a7c..46846b4 100644 (file)
@@ -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)
index 13117a1..a661b2f 100644 (file)
@@ -1,12 +1,8 @@
-#include <stdio.h>
-#include <vector>
-
 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;
 }
-