proc/tests: disable TestIssue414 on linux/386/PIE

This test will occasionally hang in SetBreakpoint/WriteMemory
This commit is contained in:
aarzilli 2020-04-16 17:37:33 +02:00 committed by Derek Parker
parent f9b6c43910
commit 9c24b56f62

@ -1803,12 +1803,18 @@ func TestIssue396(t *testing.T) {
}
func TestIssue414(t *testing.T) {
if runtime.GOOS == "linux" && runtime.GOARCH == "386" && buildMode == "pie" {
t.Skip("test occasionally hangs on linux/386/pie")
}
// Stepping until the program exits
protest.AllowRecording(t)
withTestProcess("math", t, func(p *proc.Target, fixture protest.Fixture) {
setFileBreakpoint(p, t, fixture.Source, 9)
assertNoError(p.Continue(), t, "Continue()")
for {
pc := currentPC(p, t)
f, ln := currentLineNumber(p, t)
t.Logf("at %s:%d %#x\n", f, ln, pc)
err := p.Step()
if err != nil {
if _, exited := err.(proc.ErrProcessExited); exited {