forked from OSchip/llvm-project
Fix TestThreadJump on Windows.
The system can create threads for a system threadpool, so there is no guarantee that the thread that is stopped is thread 1. So use a more robust check. llvm-svn: 257513
This commit is contained in:
parent
2de44e658d
commit
9d59306528
|
@ -34,8 +34,7 @@ class ThreadJumpTestCase(TestBase):
|
|||
# The stop reason of the thread should be breakpoint 1.
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT + " 1",
|
||||
substrs = ['stopped',
|
||||
'* thread #1',
|
||||
'stop reason = breakpoint 1'])
|
||||
'main.cpp:{}, stop reason = breakpoint 1'.format(self.mark3)])
|
||||
|
||||
self.do_min_test(self.mark3, self.mark1, "i", "4"); # Try the int path, force it to return 'a'
|
||||
self.do_min_test(self.mark3, self.mark2, "i", "5"); # Try the int path, force it to return 'b'
|
||||
|
|
Loading…
Reference in New Issue