Skip to content

Commit

Permalink
proc/tests: disable TestIssue414 on linux/386/PIE
Browse files Browse the repository at this point in the history
This test will occasionally hang in SetBreakpoint/WriteMemory
  • Loading branch information
aarzilli authored and derekparker committed Apr 20, 2020
1 parent f9b6c43 commit 9c24b56
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/proc/proc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9c24b56

Please sign in to comment.