Add co-op termination regression test for infinite recursive manual call on event function.
Such code would normally terminate quickly with a stack overflow exception anyway.0.7.4-extended
parent
701109c8c9
commit
3f80ac23b6
|
@ -294,6 +294,28 @@ default
|
||||||
TestStop(script);
|
TestStop(script);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestStopOnInfiniteManualEventCallLoop()
|
||||||
|
{
|
||||||
|
TestHelpers.InMethod();
|
||||||
|
// TestHelpers.EnableLogging();
|
||||||
|
|
||||||
|
string script =
|
||||||
|
@"default
|
||||||
|
{
|
||||||
|
state_entry()
|
||||||
|
{
|
||||||
|
integer i = 0;
|
||||||
|
llSay(0, ""Thin Lizzy"");
|
||||||
|
|
||||||
|
llSay(0, ""Iter"" + (string)i++);
|
||||||
|
default_event_state_entry();
|
||||||
|
}
|
||||||
|
}";
|
||||||
|
|
||||||
|
TestStop(script);
|
||||||
|
}
|
||||||
|
|
||||||
private void TestStop(string script)
|
private void TestStop(string script)
|
||||||
{
|
{
|
||||||
UUID userId = TestHelpers.ParseTail(0x1);
|
UUID userId = TestHelpers.ParseTail(0x1);
|
||||||
|
|
Loading…
Reference in New Issue