mirror of
https://github.com/go-delve/delve.git
synced 2025-10-27 20:23:41 +08:00
pkg/proc: Move proc exec funcs to Target methods
This commit is contained in:
committed by
Alessandro Arzilli
parent
8bb93e9ae1
commit
ccd438c65f
@ -32,7 +32,7 @@ func TestIssue419(t *testing.T) {
|
||||
withTestProcess("issue419", t, func(p *proc.Target, fixture protest.Fixture) {
|
||||
defer close(errChan)
|
||||
setFunctionBreakpoint(p, t, "main.main")
|
||||
assertNoError(proc.Continue(p), t, "Continue()")
|
||||
assertNoError(p.Continue(), t, "Continue()")
|
||||
resumeChan := make(chan struct{}, 1)
|
||||
go func() {
|
||||
time.Sleep(500 * time.Millisecond)
|
||||
@ -48,7 +48,7 @@ func TestIssue419(t *testing.T) {
|
||||
errChan <- errIssue419{pid: p.Pid(), err: err}
|
||||
}()
|
||||
p.ResumeNotify(resumeChan)
|
||||
errChan <- proc.Continue(p)
|
||||
errChan <- p.Continue()
|
||||
})
|
||||
|
||||
for i := 0; i < 2; i++ {
|
||||
|
||||
Reference in New Issue
Block a user