From b65ec46b7c499d7d7a5c3b7ff895394a9b93bb47 Mon Sep 17 00:00:00 2001 From: xel1uz <16402913+xel1uz@users.noreply.github.com> Date: Wed, 25 Nov 2026 19:46:48 +0100 Subject: [PATCH] runtime tests: vk_null_descriptor_test builds without glslangValidator ba626820 added the test with a guard in main only: without glslangValidator CMake leaves LEONIDA_TEST_NULL_DESCRIPTORS_SPV undefined, but run() still names it, so the file does not compile and the Linux runtime build, which installs no glslang (runtime.yml linux-gpu-tools), stops there. Compile the helpers only with the shader, as main already assumes, so the test reports itself unsupported (77) like the other GLSL-based tests. Co-Authored-By: Claude Opus 5.5 --- runtime/test/vk_null_descriptor_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/test/vk_null_descriptor_test.cpp b/runtime/test/vk_null_descriptor_test.cpp index f34891368b..a415378ecf 100644 --- a/runtime/test/vk_null_descriptor_test.cpp +++ b/runtime/test/vk_null_descriptor_test.cpp @@ -39,6 +39,9 @@ } \ } while (0) +// Everything but main needs the shader glslangValidator builds; without it CMake leaves the path undefined and +// main reports the test unsupported, so none of this may name it. +#ifdef LEONIDA_TEST_NULL_DESCRIPTORS_SPV namespace { using namespace leonida; @@ -244,6 +247,7 @@ int check_common(const std::array& r) { } } // namespace +#endif // LEONIDA_TEST_NULL_DESCRIPTORS_SPV int main() { #ifndef LEONIDA_TEST_NULL_DESCRIPTORS_SPV