[Lldb-commits] [lldb] r233705 - Fix FreeBSD test runs after r233311

Ed Maste emaste at freebsd.org
Tue Mar 31 09:37:10 PDT 2015


Author: emaste
Date: Tue Mar 31 11:37:10 2015
New Revision: 233705

URL: http://llvm.org/viewvc/llvm-project?rev=233705&view=rev
Log:
Fix FreeBSD test runs after r233311

On FreeBSD LLDB's triple ends up as e.g. "x86_64-unknown-freebsd10.1"
but getPlatform() consumers expect just the name with no version
number.

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=233705&r1=233704&r2=233705&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Tue Mar 31 11:37:10 2015
@@ -1389,7 +1389,10 @@ class Base(unittest2.TestCase):
 
     def getPlatform(self):
         """Returns the platform the test suite is running on."""
-        return lldb.DBG.GetSelectedPlatform().GetTriple().split('-')[2]
+        platform = lldb.DBG.GetSelectedPlatform().GetTriple().split('-')[2]
+        if platform.startswith('freebsd'):
+            platform = 'freebsd'
+        return platform
 
     def isIntelCompiler(self):
         """ Returns true if using an Intel (ICC) compiler, false otherwise. """





More information about the lldb-commits mailing list