diff --git a/src/igl/tests/vulkan/Device.cpp b/src/igl/tests/vulkan/Device.cpp index 41181e638a..a98b458a1e 100644 --- a/src/igl/tests/vulkan/Device.cpp +++ b/src/igl/tests/vulkan/Device.cpp @@ -188,6 +188,15 @@ TEST_F(DeviceVulkanTest, CurrentThreadIdTest) { ctx.ensureCurrentContextThread(); } +TEST_F(DeviceVulkanTest, EnsureValidation) { +#if !defined(IGL_DISABLE_VALIDATION) + igl::vulkan::VulkanContext& ctx = + static_cast(iglDev_.get())->getVulkanContext(); + + ASSERT_TRUE(ctx.areValidationLayersEnabled()); +#endif // !defined(IGL_DISABLE_VALIDATION) +} + TEST_F(DeviceVulkanTest, UpdateGlslangResource) { const igl::vulkan::VulkanContext& ctx = static_cast(iglDev_.get())->getVulkanContext();