mirror of
https://github.com/go-delve/delve.git
synced 2025-11-02 12:59:01 +08:00
@ -717,3 +717,18 @@ func TestDisassembleAutogenerated(t *testing.T) {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func TestIssue1090(t *testing.T) {
|
||||
// Exit while executing 'next' should report the "Process exited" error
|
||||
// message instead of crashing.
|
||||
withTestTerminal("math", t, func(term *FakeTerminal) {
|
||||
term.MustExec("break main.main")
|
||||
term.MustExec("continue")
|
||||
for {
|
||||
_, err := term.Exec("next")
|
||||
if err != nil && strings.Contains(err.Error(), " has exited with status ") {
|
||||
break
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user