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. """


_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to