From: Ed Maste Date: Fri, 30 Jan 2015 16:45:24 +0000 (+0000) Subject: Adapt test for tid format on non-Darwin platforms X-Git-Tag: llvmorg-3.7.0-rc1~13608 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=655b59854fba05212109b63ca4cd7e40e2843917;p=platform%2Fupstream%2Fllvm.git Adapt test for tid format on non-Darwin platforms llvm-svn: 227580 --- diff --git a/lldb/test/lang/c/array_types/TestArrayTypes.py b/lldb/test/lang/c/array_types/TestArrayTypes.py index de70a11..3e814bd 100644 --- a/lldb/test/lang/c/array_types/TestArrayTypes.py +++ b/lldb/test/lang/c/array_types/TestArrayTypes.py @@ -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)