proc/variables: bugfix: infinite loading loop through maps

Fixes #341
This commit is contained in:
aarzilli
2016-01-10 10:04:14 +01:00
parent 26c0307aef
commit 6d50aba71d
3 changed files with 21 additions and 4 deletions

View File

@ -1264,3 +1264,14 @@ func TestIssue262(t *testing.T) {
}
})
}
func TestIssue341(t *testing.T) {
// pointer loop through map entries
withTestProcess("testvariables3", t, func(p *Process, fixture protest.Fixture) {
assertNoError(p.Continue(), t, "Continue()")
t.Logf("requesting mapinf")
mapinf, err := evalVariable(p, "mapinf")
assertNoError(err, t, "EvalVariable()")
t.Logf("mapinf: %v\n", mapinf)
})
}