projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f355eda
)
Check if altsep exists before replace.
author
Chaoren Lin
<chaorenl@google.com>
Fri, 17 Jul 2015 21:40:11 +0000
(21:40 +0000)
committer
Chaoren Lin
<chaorenl@google.com>
Fri, 17 Jul 2015 21:40:11 +0000
(21:40 +0000)
llvm-svn: 242576
lldb/test/lldbtest.py
patch
|
blob
|
history
diff --git
a/lldb/test/lldbtest.py
b/lldb/test/lldbtest.py
index
66c69f9
..
c3deee9
100644
(file)
--- a/
lldb/test/lldbtest.py
+++ b/
lldb/test/lldbtest.py
@@
-1651,7
+1651,8
@@
class Base(unittest2.TestCase):
if compiler[1] == ':':
compiler = compiler[2:]
- compiler = compiler.replace(os.path.altsep, os.path.sep)
+ if os.path.altsep is not None:
+ compiler = compiler.replace(os.path.altsep, os.path.sep)
fname = "{}-{}-{}".format(self.id(), self.getArchitecture(), "_".join(compiler.split(os.path.sep)))
if len(fname) > 200: