mediawiki-extensions-Scribunto/tests
Brad Jorsch 88be4ec461 LuaInterpreterTest: Limit the busy loop
The test currently runs a busy loop that does string operations 1
billion times, when really it just needs something that takes more than
2 seconds of CPU time. On the other hand, there's another test that uses
the same method to run only 100 string operations for a different test.

Add a second parameter to have it exit early if enough CPU time has been
used, and use it in the first test.

Bug: T220685
Change-Id: I32309f049bcfb2e1310651818ff8674f0a311f40
2019-06-20 12:11:40 -04:00
..
parser Update tests to match parser changes 2019-03-19 13:38:48 -04:00
phpunit LuaInterpreterTest: Limit the busy loop 2019-06-20 12:11:40 -04:00