Fix: track recurseLevel in readArray/readSlice

This fix helps avoid infinite recursion.
This commit is contained in:
aarzilli
2015-08-07 13:23:18 +02:00
committed by Derek Parker
parent fe054b2f0f
commit 8de1a307ee
3 changed files with 30 additions and 8 deletions

View File

@ -216,3 +216,12 @@ func TestLocalVariables(t *testing.T) {
}
})
}
func TestRecursiveStructure(t *testing.T) {
withTestProcess("testvariables2", t, func(p *Process, fixture protest.Fixture) {
assertNoError(p.Continue(), t, "Continue()")
v, err := p.EvalVariable("aas")
assertNoError(err, t, "EvalVariable()")
t.Logf("v: %v\n", v)
})
}