This test suite has been in use for a long time now, in place of the obsolete and unmanageable testparser.py and testfuncs.py. It verifies the complete optimizer output to stdout and stderr, to ensure that the output matches the expectations. See unit_tests/README.txt for more info.
17 lines
432 B
Plaintext
17 lines
432 B
Plaintext
default{timer(){
|
|
|
|
// Stable function
|
|
if (llGetPermissions() & 2 || llGetPermissions() & 4) llDie();
|
|
|
|
// Unstable function
|
|
if (llGetUsedMemory() & 2 || llGetUsedMemory() & 4) llDie();
|
|
|
|
// Stable function with typecast
|
|
if ((integer)llGetTime() == (integer)llGetTime()) llDie();
|
|
if ((integer)llGetTime() != (integer)llGetTime()) llDie();
|
|
|
|
// Unstable function with typecast
|
|
if ((integer)llFrand(2) == (integer)llFrand(2)) llDie();
|
|
|
|
}}
|