mirror of
https://github.com/go-delve/delve.git
synced 2025-11-03 05:47:34 +08:00
native/proc/linux: wait for the target process to be killed in kill (#2280)
Waits for the target process to have received the kill signal in native.nativeProcess.kill. Fixes an infrequent error in TestKill.
This commit is contained in:
committed by
GitHub
parent
0ae77bd6c5
commit
8462d5c7d4
@ -54,6 +54,8 @@ func TestIssue419(t *testing.T) {
|
||||
for i := 0; i < 2; i++ {
|
||||
err := <-errChan
|
||||
|
||||
t.Logf("error %T %#v\n", err, err)
|
||||
|
||||
if v, ok := err.(errIssue419); ok {
|
||||
assertNoError(v.err, t, "syscall.Kill")
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user