Skip to content

Commit

Permalink
tests: Read property instead of using number
Browse files Browse the repository at this point in the history
  • Loading branch information
ziga-lunarg committed Aug 26, 2023
1 parent ca69fe1 commit f5456d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/shader_object_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ TEST_F(ShaderObjectTest, FailCreateShaders) {

createInfos[fail_index].codeType = VK_SHADER_CODE_TYPE_BINARY_EXT;

VkResult res = vk::CreateShadersEXT(m_device->handle(), 20u, createInfos, nullptr, shaders);
VkResult res = vk::CreateShadersEXT(m_device->handle(), shaders_count, createInfos, nullptr, shaders);
ASSERT_EQ(res, VK_ERROR_INCOMPATIBLE_SHADER_BINARY_EXT);

for (uint32_t i = 0; i < shaders_count; ++i) {
Expand Down

0 comments on commit f5456d8

Please sign in to comment.