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
Justin Clark-Casey (justincc) 2013-01-22 02:32:40 +00:00
parent 701109c8c9
commit 3f80ac23b6
1 changed files with 22 additions and 0 deletions

View File

@ -294,6 +294,28 @@ default
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)
{
UUID userId = TestHelpers.ParseTail(0x1);