[lldb] Simplify TestCompletion.py
authorPavel Labath <pavel@labath.sk>
Fri, 1 Oct 2021 13:47:22 +0000 (15:47 +0200)
committerPavel Labath <pavel@labath.sk>
Fri, 1 Oct 2021 13:49:23 +0000 (15:49 +0200)
lldb/test/API/functionalities/completion/TestCompletion.py

index 2bba1bfcb7dd6a220db14d11e7287beb97925604..8332048313a9dec42b07c0245d94d0dcfabc107b 100644 (file)
@@ -233,7 +233,7 @@ class CommandLineCompletionTestCase(TestBase):
 
     def test_log_file(self):
         # Complete in our source directory which contains a 'main.cpp' file.
-        src_dir =  os.path.dirname(os.path.realpath(__file__)) + '/'
+        src_dir =  self.getSourceDir() + '/'
         self.complete_from_to('log enable lldb expr -f ' + src_dir,
                               ['main.cpp'])