[Lldb-commits] [lldb] r227580 - Adapt test for tid format on non-Darwin platforms

Ed Maste emaste at freebsd.org
Fri Jan 30 08:45:24 PST 2015


Author: emaste
Date: Fri Jan 30 10:45:24 2015
New Revision: 227580

URL: http://llvm.org/viewvc/llvm-project?rev=227580&view=rev
Log:
Adapt test for tid format on non-Darwin platforms


Modified:
    lldb/trunk/test/lang/c/array_types/TestArrayTypes.py

Modified: lldb/trunk/test/lang/c/array_types/TestArrayTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/array_types/TestArrayTypes.py?rev=227580&r1=227579&r2=227580&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/array_types/TestArrayTypes.py (original)
+++ lldb/trunk/test/lang/c/array_types/TestArrayTypes.py Fri Jan 30 10:45:24 2015
@@ -130,8 +130,12 @@ class ArrayTypesTestCase(TestBase):
 
         # Sanity check the print representation of thread.
         thr = str(thread)
+        if sys.platform.startswith("darwin"):
+            tidstr = "tid = 0x%4.4x" % thread.GetThreadID()
+        else:
+            tidstr = "tid = %u" % thread.GetThreadID()
         self.expect(thr, "Thread looks good with stop reason = breakpoint", exe=False,
-            substrs = ["tid = 0x%4.4x" % thread.GetThreadID()])
+            substrs = [tidstr])
 
         # The breakpoint should have a hit count of 1.
         self.assertTrue(breakpoint.GetHitCount() == 1, BREAKPOINT_HIT_ONCE)





More information about the lldb-commits mailing list