fix: GLB test read total_length before chunk header
CI / Build & Test (push) Failing after 31s
CI / Release Build (push) Failing after 31s

This commit is contained in:
茂之钳
2026-07-24 09:15:32 +00:00
parent 600c7e6158
commit ddd5ab4db2
+3
View File
@@ -67,6 +67,9 @@ TEST(IoGltfTest, ExportTetToGlbBinary) {
EXPECT_EQ(magic, 0x46546C67u) << "GLB magic should be 'glTF'";
EXPECT_EQ(version, 2u) << "GLB version should be 2";
uint32_t total_len = 0;
f.read(reinterpret_cast<char*>(&total_len), 4);
// Should contain "JSON" chunk marker
uint32_t chunk_len = 0, chunk_type = 0;
f.read(reinterpret_cast<char*>(&chunk_len), 4);