]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ptrace_test: eliminate assumption about thread scheduling
authorbadger <badger@FreeBSD.org>
Sat, 18 Mar 2017 15:25:51 +0000 (15:25 +0000)
committerbadger <badger@FreeBSD.org>
Sat, 18 Mar 2017 15:25:51 +0000 (15:25 +0000)
commitcd377aa0d41b9a65daea42cfaa1b89caaf597b5d
tree0d187ff8cffe0f317e204fa4063e74fd469152a2
parent0bb637d68975b620868152e047f767bea4fcd066
ptrace_test: eliminate assumption about thread scheduling

A couple of the ptrace tests make assumptions about which thread in a
multithreaded process will run after a halt. This makes the tests less
portable across branches, and susceptible to future breakage. Instead,
twiddle thread scheduling and priorities to match the tests'
expectation.

X-MFC with: r313992
Sponsored by: Dell EMC
tests/sys/kern/ptrace_test.c