KhronosGroup / glslang

Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator.
Other
2.9k stars 816 forks source link

Failing test with MSYS2 UCRT environment #3521

Open AnyOldName3 opened 4 months ago

AnyOldName3 commented 4 months ago
[  FAILED  ] Glsl/CompileVulkanToSpirvTest.FromFile/spv_specConstant_vert, where GetParam() = "spv.specConstant.vert" (1 ms)

GCC 13.2.0 x86_64-w64-mingw32 ucrt64

With diff:
@@ -12,5 +12,5 @@
                               Name 4  \"main\"
                               Name 9  \"arraySize\"
-                              Name 14  \"foo(vf4[s216172782];\"
+                              Name 14  \"foo(vf4[];\"
                               Name 13  \"p\"
                               Name 17  \"builtin_spec_constant(\"
@@ -107,8 +107,8 @@
               48:          10 Load 22(ucol)
                               Store 47(param) 48
-              49:           2 FunctionCall 14(foo(vf4[s216172782];) 47(param)
+              49:           2 FunctionCall 14(foo(vf4[];) 47(param)
                               Return
                               FunctionEnd
-14(foo(vf4[s216172782];):           2 Function None 12
+  14(foo(vf4[];):           2 Function None 12
            13(p):     11(ptr) FunctionParameter
               15:             Label

The tests all work fine for me with MSVC 2022, though.

I don't know enough about the guts of glslang to diagnose the problem. If I had to hazard a guess, I'd say it might be because I'm using GCC 13.2.0 and the CI's only testing GCC 9.4.0, so there could be something that compiles slightly differently with the different compiler version and STL version.