diff options
| author | Oleksiy Vyalov <ovyalov@google.com> | 2015-10-02 22:37:55 +0000 |
|---|---|---|
| committer | Oleksiy Vyalov <ovyalov@google.com> | 2015-10-02 22:37:55 +0000 |
| commit | a1733984f245b6a46e88e9d632da750cd11f3ab2 (patch) | |
| tree | c6b8f6fc1aa71a8cbc373de0068156cb17912bba /lldb/test/functionalities | |
| parent | 042e817bff760613c86f98e0d259a5f282471405 (diff) | |
| download | bcm5719-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.py | 2 |
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 |

