[Lldb-commits] [lldb] r219730 - Fix a path concatenation issue related to windows paths.

Zachary Turner zturner at google.com
Tue Oct 14 14:54:15 PDT 2014


Author: zturner
Date: Tue Oct 14 16:54:14 2014
New Revision: 219730

URL: http://llvm.org/viewvc/llvm-project?rev=219730&view=rev
Log:
Fix a path concatenation issue related to windows paths.

Modified:
    lldb/trunk/test/lldbtest.py

Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=219730&r1=219729&r2=219730&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Tue Oct 14 16:54:14 2014
@@ -1148,7 +1148,11 @@ class Base(unittest2.TestCase):
                              os.environ["LLDB_SESSION_DIRNAME"])
         if not os.path.isdir(dname):
             os.mkdir(dname)
-        fname = os.path.join(dname, "%s-%s-%s-%s.log" % (prefix, self.getArchitecture(), "_".join(self.getCompiler().split('/')), self.id()))
+        compiler = self.getCompiler()
+        if compiler[1] == ':':
+            compiler = compiler[2:]
+
+        fname = os.path.join(dname, "%s-%s-%s-%s.log" % (prefix, self.getArchitecture(), "_".join(compiler.split(os.path.sep)), self.id()))
         with open(fname, "w") as f:
             import datetime
             print >> f, "Session info generated @", datetime.datetime.now().ctime()





More information about the lldb-commits mailing list