summaryrefslogtreecommitdiff
path: root/indra/llprimitive/tests
diff options
context:
space:
mode:
authorCosmic Linden <cosmic@lindenlab.com>2023-02-10 17:07:05 -0800
committerCosmic Linden <cosmic@lindenlab.com>2023-02-10 17:07:05 -0800
commitd2a2541de598f8d85dba28e88f0b44ccdcdd6ba6 (patch)
treec96ee645a79f36fd9d13b9e8465293fd17403c52 /indra/llprimitive/tests
parenta56385345f3fb261b8c2c375960f1328c296ebf2 (diff)
SL-19080: Restrict LLGLTFMaterial fields test to a single compiler target, as results can vary between compilers
Diffstat (limited to 'indra/llprimitive/tests')
-rw-r--r--indra/llprimitive/tests/llgltfmaterial_test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/llprimitive/tests/llgltfmaterial_test.cpp b/indra/llprimitive/tests/llgltfmaterial_test.cpp
index 5ef88c8119..859cf99e3a 100644
--- a/indra/llprimitive/tests/llgltfmaterial_test.cpp
+++ b/indra/llprimitive/tests/llgltfmaterial_test.cpp
@@ -142,7 +142,10 @@ namespace tut
if (sizeof(void*) > 4) // Don't bother running this test for 32-bit systems
{
// If any fields are added/changed, these tests should be updated (consider also updating ASSET_VERSION in LLGLTFMaterial)
+ // This test result will vary between compilers, so only test a single platform
+#if LL_WINDOWS
ensure_equals("fields supported for GLTF (sizeof check)", sizeof(LLGLTFMaterial), 216);
+#endif
}
ensure_equals("LLGLTFMaterial texture info count", (U32)LLGLTFMaterial::GLTF_TEXTURE_INFO_COUNT, 4);
}