As of Second Life Server 2022-09-09.574921, STATUS_DIE_AT_EDGE and STATUS_DIE_AT_NO_ENTRY return their corresponding settings rather than always FALSE. Regression/coverage tests are clearly lacking in this area, as the change didn't trigger any test breakage, therefore add some unit tests.
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
// Functions that can't be computed at compile time
|
|
default
|
|
{
|
|
timer()
|
|
{
|
|
llSetPrimitiveParams( // we need a function that causes side effects,
|
|
// so that it isn't optimized out
|
|
[ llFrand(1)
|
|
, llFrand(1.1754943508222875e-38)
|
|
, llGenerateKey()
|
|
, llAvatarOnLinkSitTarget(2)
|
|
, llEdgeOfWorld(<1,1,1>, <1,1,1>)
|
|
, llGetAgentInfo(TEXTURE_BLANK)
|
|
, llGetAgentLanguage(TEXTURE_BLANK)
|
|
, llGetAgentList(AGENT_LIST_PARCEL, [])
|
|
, llGetAgentSize(TEXTURE_DEFAULT)
|
|
, llGetAlpha(0)
|
|
, llGetAnimation(TEXTURE_BLANK)
|
|
, llGetAnimationList(TEXTURE_BLANK)
|
|
, llGetBoundingBox(TEXTURE_BLANK)
|
|
, llGetColor(0)
|
|
, llGetDisplayName(TEXTURE_BLANK)
|
|
, llGetEnv("estate_name")
|
|
, llXorBase64Strings("++++", "?")
|
|
, llAbs(-2147483648)
|
|
, llGetStatus(STATUS_DIE_AT_EDGE)
|
|
, llGetStatus(STATUS_DIE_AT_NO_ENTRY)
|
|
]);
|
|
}
|
|
}
|