From bd79b276e9e3559b7057c458e2b467784ad475aa Mon Sep 17 00:00:00 2001 From: Orkuncakilkaya Date: Tue, 15 Sep 2026 09:58:26 +0300 Subject: [PATCH] fix(test): the vkgen drift check runs wherever the Vulkan SDK is `ls a b` fails when `a` is missing even though `b` exists, so with VULKAN_SDK unset the guard skipped the check on a Mac that has the SDK under ~/VulkanSDK. Co-Authored-By: Claude Opus 5 --- tools/ludic-cli/test.ludic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ludic-cli/test.ludic b/tools/ludic-cli/test.ludic index b2fa4008..75ebc0bf 100644 --- a/tools/ludic-cli/test.ludic +++ b/tools/ludic-cli/test.ludic @@ -811,7 +811,7 @@ function cmd_dev_test() -> int { # and the Vulkan one: vk_api.ludic + vk_thunks.ll regenerated from the registry's vk.xml, # which comes with the Vulkan SDK - so this guard runs wherever the SDK is installed - if shq("ls $VULKAN_SDK/share/vulkan/registry/vk.xml $HOME/VulkanSDK/*/macOS/share/vulkan/registry/vk.xml >/dev/null 2>&1") { + if shq("ls $VULKAN_SDK/share/vulkan/registry/vk.xml $HOME/VulkanSDK/*/macOS/share/vulkan/registry/vk.xml 2>/dev/null | grep -q vk.xml") { if shq(`bin/ludic-dev vkgen --check > {tmp_dir()}/vkgen.out 2>&1`) { ok("ludic-dev vkgen regenerates vk_api.ludic + vk_thunks.ll byte-identically") } else { bad2("ludic-dev vkgen --check", capture_line(`tail -1 {tmp_dir()}/vkgen.out`)) }