aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/Tests/CoopTerminationTests.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/Tests/CoopTerminationTests.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/Tests/CoopTerminationTests.cs
index 3365c92..149a27b 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/Tests/CoopTerminationTests.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/Tests/CoopTerminationTests.cs
@@ -261,6 +261,36 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance.Tests
261 TestStop(script); 261 TestStop(script);
262 } 262 }
263 263
264 [Test]
265 public void TestStopOnInfiniteUserFunctionCallLoop()
266 {
267 TestHelpers.InMethod();
268// TestHelpers.EnableLogging();
269
270 string script =
271@"
272integer i = 0;
273
274ufn1()
275{
276 llSay(0, ""Iter ufn1() "" + (string)i++);
277 ufn1();
278}
279
280default
281{
282 state_entry()
283 {
284 integer i = 0;
285 llSay(0, ""Thin Lizzy"");
286
287 ufn1();
288 }
289}";
290
291 TestStop(script);
292 }
293
264 private void TestStop(string script) 294 private void TestStop(string script)
265 { 295 {
266 UUID userId = TestHelpers.ParseTail(0x1); 296 UUID userId = TestHelpers.ParseTail(0x1);