if (vk.allocateMemory(vkDevice, &memAlloc, (const VkAllocationCallbacks*)DE_NULL, &memory) != VK_SUCCESS)
return tcu::TestStatus::fail("Alloc memory failed!");
if (vk.bindBufferMemory(vkDevice, testBuffer, memory, 0) != VK_SUCCESS)
return tcu::TestStatus::fail("Bind buffer memory failed!");
if (vk.allocateMemory(vkDevice, &memAlloc, (const VkAllocationCallbacks*)DE_NULL, &memory) != VK_SUCCESS)
return tcu::TestStatus::fail("Alloc memory failed!");
if (vk.bindBufferMemory(vkDevice, testBuffer, memory, 0) != VK_SUCCESS)
return tcu::TestStatus::fail("Bind buffer memory failed!");