summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities
diff options
context:
space:
mode:
authorOleksiy Vyalov <ovyalov@google.com>2015-10-02 22:37:55 +0000
committerOleksiy Vyalov <ovyalov@google.com>2015-10-02 22:37:55 +0000
commita1733984f245b6a46e88e9d632da750cd11f3ab2 (patch)
treec6b8f6fc1aa71a8cbc373de0068156cb17912bba /lldb/test/functionalities
parent042e817bff760613c86f98e0d259a5f282471405 (diff)
downloadbcm5719-llvm-a1733984f245b6a46e88e9d632da750cd11f3ab2.tar.gz
bcm5719-llvm-a1733984f245b6a46e88e9d632da750cd11f3ab2.zip
Fix TestCompDirSymLink.py - remove existing symlink leftovers if previous test run
was terminated (e.g., due timeout). llvm-svn: 249203
Diffstat (limited to 'lldb/test/functionalities')
-rw-r--r--lldb/test/functionalities/breakpoint/comp_dir_symlink/TestCompDirSymLink.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/test/functionalities/breakpoint/comp_dir_symlink/TestCompDirSymLink.py b/lldb/test/functionalities/breakpoint/comp_dir_symlink/TestCompDirSymLink.py
index d67c43ff56f..ba2a54932e9 100644
--- a/lldb/test/functionalities/breakpoint/comp_dir_symlink/TestCompDirSymLink.py
+++ b/lldb/test/functionalities/breakpoint/comp_dir_symlink/TestCompDirSymLink.py
@@ -47,6 +47,8 @@ class CompDirSymLinkTestCase(TestBase):
def create_src_symlink(self):
pwd_symlink = os.path.join(os.getcwd(), 'pwd_symlink')
+ if os.path.exists(pwd_symlink):
+ os.unlink(pwd_symlink)
os.symlink(os.getcwd(), pwd_symlink)
self.addTearDownHook(lambda: os.remove(pwd_symlink))
return pwd_symlink
OpenPOWER on IntegriCloud