summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/c/unions/TestUnionMembers.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/c/unions/TestUnionMembers.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lang/c/unions/TestUnionMembers.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/c/unions/TestUnionMembers.py b/lldb/packages/Python/lldbsuite/test/lang/c/unions/TestUnionMembers.py
index 8764f521130..4965df2d809 100644
--- a/lldb/packages/Python/lldbsuite/test/lang/c/unions/TestUnionMembers.py
+++ b/lldb/packages/Python/lldbsuite/test/lang/c/unions/TestUnionMembers.py
@@ -40,9 +40,7 @@ class TestUnionMembers(TestBase):
def _load_exe(self):
self.build()
- cwd = os.getcwd()
-
- src_file = os.path.join(cwd, "main.c")
+ src_file = os.path.join(self.getSourceDir(), "main.c")
self.src_file_spec = lldb.SBFileSpec(src_file)
self.assertTrue(self.src_file_spec.IsValid(), "breakpoint file")
OpenPOWER on IntegriCloud