Remove unnecessary target from TestCompletion patch
authorRaphael Isemann <teemperor@gmail.com>
Wed, 1 Aug 2018 23:54:37 +0000 (23:54 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 1 Aug 2018 23:54:37 +0000 (23:54 +0000)
As Jim pointed out, we don't need to manually create a target
here because we already create a target implicitly in the very
next line (which means we just created a target and don't use it).

This patch just removes the line that creates the first unused target.

llvm-svn: 338657

lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py

index 5d4fcf6..5971e5a 100644 (file)
@@ -43,7 +43,6 @@ class CommandLineCompletionTestCase(TestBase):
         self.build()
         self.main_source = "main.cpp"
         self.main_source_spec = lldb.SBFileSpec(self.main_source)
-        self.dbg.CreateTarget(self.getBuildArtifact("a.out"))
 
         (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(self,
                                           '// Break here', self.main_source_spec)